9.100. EXECUTE_COMMAND_LINE
9.100 EXECUTE_COMMAND_LINE — Execute a shell command
- Description:
-
EXECUTE_COMMAND_LINE
runs a shell command, synchronously or asynchronously.The
COMMAND
argument is passed to the shell and executed, using the C library’ssystem
call. (The shell issh
on Unix systems, andcmd.exe
on Windows.) IfWAIT
is present and has the value false, the execution of the command is asynchronous if the system supports it; otherwise, the command is executed synchronously.The three last arguments allow the user to get status information. After synchronous execution,
EXITSTAT
contains the integer exit code of the command, as returned bysystem
.CMDSTAT
is set to zero if the command line was executed (whatever its exit s