Mobile/Test-Agent
From MozillaWiki
< Mobile
Overview
The test agent listens on port 27020 for telnet connections. Once connected it signals that its ready for a command by sending "$>". It also sends "$>" after it has finished executing a command and is ready for the next one.
Commands
Command | description | arguments |
---|---|---|
quit | disconnects | none |
cd | changes the current directory | <path to new directory (absolute or relative)> |
cwd | prints current working directory | none |
exec | synchronously execute command and capture output | <command> <args> |
fire | asynchronously execute command and capture output | <command> <args> |
run | synchronously execute command without capturing output | <command> <args> |
arun | asynchronously execute command without capturing output | <command> <args> |
cp | copies a file on remote machine | <src path> <dst path> |
ls | list files in a directory | <path, optional defaults to cwd> |
mv | moves a file on remote machine | <src path> <dst path> |
cat | prints contents of a file to the console | <path> |
catq | prints contents of a file to the console and disconnects | <path> |
push | writes stdin to file until disconnect | <path> |
ps | list processes | none |
kill | kill a process | <pid> |
tmpd | prints path to temporary directory to stdout | none |
rebt | reboots the device | none |
stat | prints process stats (heap stats and cpu time) | <pid> |
mkdir | create new directory | <path> |
rmdir | deletes directory | <path> |
mems | prints global memory stats | |
disk | prints free and available disk space | <path> |
hash | prints md5 hash of file contents | <path> |
clok | prints current time according to device clock | none |
uzip | unzips a 7zip compressed file | <path> |
time | prints file time stamp | <path> |