This command behaves the same as the run command, except that it waits for the completion of the process or program before continuing.

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


wait <command-line>


Runs the scandskw.exe program and waits for the program to complete before continuing with the action script. The use of quotes is recommended practice, and necessary if there are spaces in the file name.

wait "scandskw.exe"

On non-Windows platforms:

wait chmod 555 inventory.sh


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>.

The wait command has two available override keywords: timeout_seconds, and disposition. See the override documentation for details.