jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
This works just fine.#! /usr/bin/perl open OUT,"| ./progX" or die ; print OUT "X\n\n1\n2\n\n\n" ; close OUT ;
Than I would open the 'output' file and read the content.open OUT,"| ./progX > output" or die ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: need to read/write from/to an external program
by davorg (Chancellor) on Feb 21, 2007 at 15:31 UTC | |
|
Re: need to read/write from/to an external program
by jeanluca (Deacon) on Feb 21, 2007 at 16:08 UTC | |
by Sidhekin (Priest) on Feb 21, 2007 at 16:16 UTC |