in reply to Getting PID of process forked by backticks
If there is a way, I do not know it, but you can use open to the same effect; e.g. (adapted from perlfaq8):
my $pid = open( GREP, "-|", 'grep', @opts, $search_string, @filenames +); chomp(@ok = <GREP>); close GREP;
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting PID of process forked by backticks
by paulski (Beadle) on Jun 08, 2005 at 04:26 UTC |