Skip to main content
Version: 0.20.3

execOnShell

production

Executes a shell command on the device your AskUI Controller is connected to.

Example:

// Open the lastpass app
await aui.execOnShell('monkey -p com.lastpass.authenticator 1').exec();

// Open Google Chrome on Windows
await aui.execOnShell("start chrome").exec()

;// Open Google Chrome on macOS
await aui.execOnShell("open -a 'Google Chrome'").exec();

// Open Google Chrome on Linux
await aui.execOnShell("chrome").exec();
  • @param {string} shell_command - A shell command which is executed.