stdlib : subprocess
This library can be used to launch and communicate with external subprocesses.
read
process.read
process.read timeout
Read from process, with an optional timeout.
Timeout is in seconds.
readable?
process.readable?
process.readable? timeout
Check if a process has data available for reading. Returns immediately if no timeout is given.
Timeout is in seconds.
run
process.run command
Run a given command. Returns the output as a string.
running?
process.running?
Check if there is a current process associated with the process handle.
start
process.start command, …
Starts the given command and returns a process handle.
stop
process.stop
Stop the process.
write
process.write data
Write out to the process.
writable?
process.writable?
process.writable? timeout
Check if a process has data available for reading. Returns immediately if no timeout is given.
Timeout is in seconds.