rawSystem
The computation
rawSystem cmd args runs
the operating system command
cmd in such a way that it
receives as arguments the
args strings exactly as
given, with no funny escaping or shell meta-syntax expansion. It will
therefore behave more portably between operating systems than
system.
The return codes and possible failures are the same as for
system.
Execute the given command with the given arguments, exiting with the
same exit code if the command fails.
Execute the given command with the given arguments, returning the
command's exit code.
Execute the given command with the given arguments and environment,
exiting with the same exit code if the command fails.
Execute the given command with the given arguments, returning the
command's exit code.
Optional arguments allow setting working directory, environment and
input and output handles.
Execute the given command with the given arguments, returning the
command's exit code. action is executed while the command is
running, and would typically be used to communicate with the process
through pipes.
Optional arguments allow setting working directory, environment and
input and output handles.
Execute the given command with the given arguments, returning the
command's exit code.
Create the process argument with
proc to ensure consistent
options with other
rawSystem functions in this module.
Execute the given command with the given arguments, returning the
command's exit code.
action is executed while the command is
running, and would typically be used to communicate with the process
through pipes.
Create the process argument with
proc to ensure consistent
options with other
rawSystem functions in this module.
Execute the given command with the given arguments, returning the
command's output, errors and exit code.
Optional arguments allow setting working directory, environment and
command input.
Provides control over the binary/text mode of the input and output.
Execute the given command with the given arguments, returning the
command's output. Exits if the command exits with error.
Provides control over the binary/text mode of the output.
Run command without shell
Invokes the specified command in a subprocess, without waiting for the
result. Returns the PID of the subprocess -- it is YOUR responsibility
to use getProcessStatus or getAnyProcessStatus on that at some point.
Failure to do so will lead to resource leakage (zombie processes).
This function does nothing with signals. That too is up to you.
Logs as System.Cmd.Utils.forkRawSystem
Invokes the specified command in a subprocess, waiting for the result.
Return the result status. Never raises an exception. Only available on
POSIX platforms.
Like system(3), this command ignores SIGINT and SIGQUIT and blocks
SIGCHLD during its execution.
Logs as System.Cmd.Utils.posixRawSystem