Next: SYSTEM_CLOCK, Previous: SYMLNK, Up: Intrinsic Procedures
SYSTEM
— Execute a shell commandsystem(3)
). If
argument STATUS is present, it contains the value returned by
system(3)
, which is presumably 0 if the shell command succeeded.
Note that which shell is used to invoke the command is system-dependent
and environment-dependent.
This intrinsic is provided in both subroutine and function forms;
however, only one form can be used in any given program unit.
CALL SYSTEM(COMMAND [, STATUS])
|
STATUS = SYSTEM(COMMAND)
|
COMMAND | Shall be of default CHARACTER type.
|
STATUS | (Optional) Shall be of default INTEGER type.
|