Auto-tools/Projects/SUTAgent/CommandReference: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 2: Line 2:
  consider making exec more well defined for: async vs sync launching of process, environment variables  
  consider making exec more well defined for: async vs sync launching of process, environment variables  
  define how exec parameters look (expecially with quotes)
  define how exec parameters look (expecially with quotes)
settime (used by sut_tools)
tzset (needed as well)
ver (get the version so we know if we are running current version or not)


The SUTAgent shall support at least the following commands:
The SUTAgent shall support at least the following commands:
Line 10: Line 7:
; cd <dir>
; cd <dir>
: Change the current working directory to <dir>. <dir> can be absolute or relative to the cwd.
: Change the current working directory to <dir>. <dir> can be absolute or relative to the cwd.
; clok : Print system time in milliseconds.
; cwd
; cwd
: Print the current working directory.
: Print the current working directory.
Line 18: Line 16:
; hash <file path>
; hash <file path>
: Prints an MD5 hash of the contents of <file path>, if found and readable.
: Prints an MD5 hash of the contents of <file path>, if found and readable.
; info [subcommand] : Prints out some system information. [subcommand] can be one of the following subcommands:
* id: unique device ID, such as a MAC address
* os: operating system version, e.g. "GINGERBREAD.XXKI4"
* systime: ISO-style system time, e.g. "2012/08/01 02:00:27:274"
* uptime: elapsed time since the device was last started, e.g. "0 days 2 hours 13 minutes 51 seconds 957 ms"
* uptimemillis: elapsed time since the device was last started in total number of milliseconds, e.g. "8078506"
* screen: screen resolution in the form "X:<pixels> Y:<pixels>"
* rotation: angle of rotation, in degrees, e.g. "0" or "90"
* memory: amount of available and free memory in bytes, e.g. "PA:644018176, FREE: 456482816"
* power: power status, e.g.
Power status:
  AC power ONLINE
  Battery charge HIGH FULL
  Remaining charge:      100%
  Battery Temperature:  32.0 (c)
* process: process list, as with the "ps" command below
: If no subcommand is given, all the info is printed out in the above order.
; inst <path to apk> :
; isdir <path>
; isdir <path>
: Prints "TRUE" if <path> is a directory, "FALSE" if it exists but isn't a directory, or an error string if <path> doesn't exist or isn't readable.
: Prints "TRUE" if <path> is a directory, "FALSE" if it exists but isn't a directory, or an error string if <path> doesn't exist or isn't readable.
Line 42: Line 58:
; unzp <zip file> [dest dir]
; unzp <zip file> [dest dir]
: Unzips <zip file> to [dest dir]. [dest dir] defaults to cwd.
: Unzips <zip file> to [dest dir]. [dest dir] defaults to cwd.
; updt <path to apk> :
Confirmed users
1,927

edits

Navigation menu