![]() # exceptions thrown in set_up_child() will be propagated back # command (only works on systems with true fork() & exec()) Run '&', Calling \&set_up_child in the child before it executes the # children exit, use start() for background execution): Run '|', Multiple children simultaneously (run() blocks until all Pump $h until $out =~ /\G.*more input\n/ My $h = start \$in, \$out, \$err, timeout( 10 ) ![]() # $in is drained as it is fed to cat's stdin, # Incrementally read from / write to scalars. Use IPC::Run qw( start pump finish timeout ) # Redirecting using pseudo-terminals instead of pipes. # Can do I/O to sub refs and filenames, too: IPC::Run - system() and background procs w/ piping, redirs, ptys (Unix, Win32) SYNOPSIS # First,a command to run: ![]() Spawning synchronization, child exception propagation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |