Make your phone or tablet smarter with automation

Get it on Google Play

Shell command

An action block that executes a shell command.

The fiber will pause until the command has completed.

The command should be formatted as it would when executed at a shell prompt, that includes proper escaping. Use the cliEncode function when including a filename or other text as an argument.

The standard output and error will contain the full text as generated by the command during its execution. The exit code is usually set to 0 (zero) for a successful execution of the command.

Note! Built-in shell commands like printf, echo and test which aren’t stand-alone executables may not work.

Input arguments

  • Command — command to execute, including any arguments.
  • Working directory — directory where the command will be executed, default is external storage.

Output variables

  • Standard output text — variable to assign the STDOUT.
  • Standard error text — variable to assign the STDERR.
  • Exit code — variable to assign the exit code.
Note! This documentation can also be found in the Help & feedback menu of the app.