spawn
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (38)
- 1_9_3_392 (0)
- 2_1_10 (-9)
- 2_2_9 (0)
- 2_4_6 (-1)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
spawn(*args)
public
Spawns the specified command on a newly allocated pty.
The command’s controlling tty is set to the slave device of the pty and its standard input/output/error is redirected to the slave device.
command_line |
The full command line to run |
command |
The command to run, as a String. |
args |
Zero or more arguments, as Strings, representing the arguments to command |
In the non-block form this returns an array of size three, [r, w, pid]. In the block form the block will be called with these as arguments, |r,w,pid|:
r |
An IO that can be read from that contains the command’s standard output and standard error |
w |
An IO that can be written to that is the command’s standard input |
pid |
The process identifier for the command. |