Confirmed users
1,927
edits
No edit summary |
|||
| Line 12: | Line 12: | ||
; dirw <dir> | ; dirw <dir> | ||
: Indicates whether a directory is writable or not. Prints the string "[<dir>] is writable" or "[<dir>] is not writable". | : Indicates whether a directory is writable or not. Prints the string "[<dir>] is writable" or "[<dir>] is not writable". | ||
; exec [ | ; exec ["env1=val1,env2=var2,..."] <prog> [arg1] [arg2] [...] | ||
: Executes <prog>, optionally passing one or more attributes, as a separate process. Prints out a platform-dependent message indicating success or failure. Environment variables to pass to the process should precede the program name and be of the form <variable name>=<value>. | : Executes <prog>, optionally passing one or more attributes, as a separate process. Prints out a platform-dependent message indicating success or failure. Environment variables to pass to the process should precede the program name and be of the form <variable name>=<value>. | ||
: The command should not be completed until the process has terminated. Note that it *may* terminate quickly if <prog> spawns another process, as with "am start" on Android. | : The command should not be completed until the process has terminated. Note that it *may* terminate quickly if <prog> spawns another process, as with "am start" on Android. | ||