run

Executes the indicated program. If the process can't be created, the action script is terminated. Run does not wait for the process to terminate before executing the next line of the action script. The command line contains the name of the executable and may optionally contain parameters.

If you wish to wait for one program to finish before starting another one, use the wait command.

Warning: Do not launch long run programs directly from the __Download folder using any of these commands: run, rundetached, runhidden, override with completion=none, or override with timeout, disposition=abandon. Instead, add an action to copy the programs to a location different from the __Download folder and launch the programs from there.

Version Platforms
8.0.584.0 AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows
8.1.535.0 Debian, Ubuntu

Syntax

run <command-line>

Examples

These examples show how you might run a script and pass it some arguments. Quotes around the command line are recommended, and necessary if there are spaces in file names.

On Windows platforms

run "{pathname of regapp "wordpad.exe"}"
run "c:\winnt\ftp.exe" ftp.mycorp.net
run wscript /e:vbs x.vbs arg1 arg2

On non-Windows platforms

run sudo touch "/tmp/example.txt"

Notes

On a Windows computer, this command has the same effect as calling the CreateProcess function with <command-line>. This is also the same as using <command-line> in the Windows Run dialog.

See the Windows documentation on CreateProcess for a discussion of the method used to locate the executable from a <command-line>.