in reply to Re: open (to read) and kill a pipe to a pipe
in thread open (to read) and kill a pipe to a pipe
maybe someone can provide an example of how to make this work...use IPC::Open2; $file = $ARGV[0]; local *FRGZ; local *TOGZ; local *FRCMD; $pid1 = open2(*FRGZ, *TOGZ, "gzip -dc $file"); $pid2 = open2(*FRCMD, '<FRGZ', 'mycommand'); while (<*FRCMD>) { print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: open (to read) and kill a pipe to a pipe
by ikegami (Patriarch) on Aug 26, 2010 at 22:22 UTC |