IO.popen([env,] cmd, mode="r" [, opt]) â ioIO.popen([env,] cmd, mode="r" [, opt]) {|io| block } â obj
Class Public methods
Runs the specified command as a subprocess; the subprocess's standard
input and output will be connected to the returned IO object.
The PID of the started process can be obtained by #pid method.
cmd is a string or an array as follows.
cmd:
"-" : fork
commandline : command line