system_callsystem_callSystemCallSystemCall (Operator)
Name
system_callsystem_callSystemCallSystemCall
— Execute a system command.
Signature
Herror system_call(const char* Command)
Herror T_system_call(const Htuple Command)
Description
The operator system_callsystem_callSystemCallSystemCallSystemCall
executes the system command given in
CommandCommandCommandCommandcommand
.
On Windows operating systems, the system command can be prefixed by
'start /b'"start /b""start /b""start /b""start /b" to avoid waiting for the started application.
On Unix-like operating systems, an interactive shell ('csh -i') will be started,
if CommandCommandCommandCommandcommand
contains an empty string.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
CommandCommandCommandCommandcommand
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Command to be called by the system.
Default value:
'ls'
"ls"
"ls"
"ls"
"ls"
Result
On Windows operating systems,the operator system_callsystem_callSystemCallSystemCallSystemCall
will always
return the value 2 (H_MSG_TRUE) unless there was a problem creating a new process.
On other operating systems, system_callsystem_callSystemCallSystemCallSystemCall
will always return
the value 2 (H_MSG_TRUE).
Possible Predecessors
count_secondscount_secondsCountSecondsCountSecondsCountSeconds
See also
wait_secondswait_secondsWaitSecondsWaitSecondsWaitSeconds
,
count_secondscount_secondsCountSecondsCountSecondsCountSeconds
Module
Foundation