Object -
system
:
Process
This object contains information on a process being created from Ballerina.
This is returned from the exec
function in the system
module.
Methods
Waits for the process to finish its work and exit.
Returns the exit code of the process when it finished execution. Error if the process has not exited yet.
Destroys the process.
Provides a channel (to write into), which is made available as the 'standard input' for the process.
Provides a channel (to read from), which is made available as the 'standard output' of the process.
Provides a channel (to read from), which is made available as the 'standard error' of the process.
Pipes the standard output of the current process to the standard input of the given process.
Waits for the process to finish its work and exit.
-
Return Type
(int | Error) Returns the exit code for the process, or an
Error
if a failure occurs
Returns the exit code of the process when it finished execution. Error if the process has not exited yet.
-
Return Type
(int | Error) Returns the exit code of the process, or an
Error
if the process hasn't exited yet.
Provides a channel (to write into), which is made available as the 'standard input' for the process.
-
Return Type
(WritableByteChannel) The
io:WritableByteChannel
which represents the process's 'standard input'
Provides a channel (to read from), which is made available as the 'standard output' of the process.
-
Return Type
(ReadableByteChannel) The
io:ReadableByteChannel
which represents the process's 'standard output'
Provides a channel (to read from), which is made available as the 'standard error' of the process.
-
Return Type
(ReadableByteChannel) The
io:ReadableByteChannel
which represents the process's 'standard error'