User Tools

Site Tools


action:Execute_a_Shell_Script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
action:Execute_a_Shell_Script [2019/07/09 04:28]
peternlewis [Output of Results]
action:Execute_a_Shell_Script [2019/10/07 04:37]
peternlewis [Execute a Shell Script]
Line 1: Line 1:
 ====== Execute a Shell Script ====== ====== Execute a Shell Script ======
  
-The //Execute a Shell Script// action executes a specified shell script, either from a file or from the script embedded in the action.+The //Execute a Shell Script// action executes a specified shell script ​using `/bin/sh`, either from a file or from the script embedded in the action.
  
 To execute the script from an external file, choose the "​Execute Script File" in the choices for script location. To execute the script from an external file, choose the "​Execute Script File" in the choices for script location.
Line 10: Line 10:
  
 If the script fails, the action will fail (v9.0+), potentially aborting the macro. If the script fails, the action will fail (v9.0+), potentially aborting the macro.
 +
 +If you want to use another language, or use any special kinds of shell-specific syntax, then you should specify the language using the `#!` at the front of the script.
  
 ==== Using Keyboard Maestro Variables ==== ==== Using Keyboard Maestro Variables ====
action/Execute_a_Shell_Script.txt ยท Last modified: 2023/09/22 04:39 by peternlewis