treebeard has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to send two parameters from one perl script to another. When the child finishes, I want to capture the output. Here is line
open(LDBHIER, "ldbtest.pl -e aa100001 -t 123|") || die "dead";
the idea is that ldbtest.pl receives the two values and sticks them in $opt_e, and $opt_t )using the Getopt::Std module. When that program finishes, I believe that the output is put in the LDBHIER file-handle but I get an error message
Broken Pipe sh: -t: not found
I was able to get this to work when I had one parameter and I am able to run
ldbtest.pl -e aa100001 -t 123
from the unix prompt, but I am afraid that I am new at this and what I have read about forks, et al has just confused me a bit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing values to another perl program
by Malkavian (Friar) on Jul 09, 2001 at 21:01 UTC | |
by treebeard (Acolyte) on Jul 09, 2001 at 22:36 UTC | |
|
Re: passing values to another perl program
by PrakashK (Pilgrim) on Jul 09, 2001 at 20:36 UTC | |
|
Re: passing values to another perl program
by particle (Vicar) on Jul 09, 2001 at 20:35 UTC | |
|
Re: passing values to another perl program
by arturo (Vicar) on Jul 09, 2001 at 20:08 UTC | |
by treebeard (Acolyte) on Jul 09, 2001 at 20:44 UTC | |
by arturo (Vicar) on Jul 09, 2001 at 22:16 UTC | |
by Athahar (Initiate) on Apr 06, 2006 at 07:26 UTC |