in reply to Re^4: how to kill background process when script exit?
in thread how to kill background process when script exit?
$ perl -E' say "".localtime; open my $fh, q{perl -e sleep |}; say "".localtime; ' Sun Feb 20 13:25:05 2011 Sun Feb 20 13:25:05 2011 [hung waiting for child to exit]
or how about
$ perl -E' open my $fh, q{perl -E'\''sleep 1; say STDERR "C"'\'' |}; say "P"; ' P C
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: how to kill background process when script exit?
by Allasso (Monk) on Feb 20, 2011 at 23:55 UTC | |
by ikegami (Patriarch) on Feb 21, 2011 at 01:05 UTC |