[silver:util:subprocess]
Contents of [silver:util:subprocess]
:
Defined in this grammar:
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 16.
Parametercmd
The command to run
Parameterargs
The arguments to pass to the command (separate from the command)
Parameteri
The IO token
Return
The handle to communicate with the process
Start a subprocess to run in the background with which to communicate.
To run cmd a1 a2
, call spawnProcess("cmd", ["a1", "a2"])
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 33.
Parameterp
The process to which to send the message
Parametermsg
The message to send to the subprocess
Parameteri
The IO token
Return
The IO token
Send a string message to a subprocess
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 49.
Parameterp
The process from which to read
Parameteri
The IO token
Return
The line which was read
Read a line of output from a subprocess
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 66.
Parameterp
The process from which to read
Parameteri
The IO token
Return
The line which was read
Read everything available in the output from a subprocess. Returns an empty string if nothing is available.
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 85.
Parameterp
The process from which to read
Parameterending
The string to end on
Parameteri
The IO token
Return
The line which was read
Read everything in the stdout from a subprocess until reaching the string “ending”. The ending string is included in the output. If the process never outputs the ending string to stdout, this function never returns.
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 101.
Parameterp
The process from which to read
Parameteri
The IO token
Return
The line which was read
Read a line of output from stderr of a subprocess
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 118.
Parameterp
The process from which to read
Parameteri
The IO token
Return
The line which was read
Read everything available in the stderr from a subprocess. Returns an empty string if nothing is available.
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 137.
Parameterp
The process from which to read
Parameterending
The string to end on
Parameteri
The IO token
Return
The line which was read
Read everything in the stderr from a subprocess until reaching the string “ending”. The ending string is included in the output. If the process never outputs the ending string to stderr, this function never returns.
Contained in grammar [silver:util:subprocess]
. Defined at silver/util/subprocess/Subprocess.sv line 154.
Parameterp
The process for which to wait
Parameteri
The IO token
Return
The IO token
Wait for a running subprocess to end. There should be a reason to expect it to end; this does not kill it.