nysus has asked for the wisdom of the Perl Monks concerning the following question:
`perl Program B.cgi filetoprocess > outputfile`;
Using the backquotes here works great. It processes the input file and outputs it to another.
However, when I throw in a switch to pass to Program B, like so:
`perl Program B.cgi -t filetoprocess > outputfile`;
what happens is that Program A halts execution and waits for me to provide input. After entering some input, Program B processes the input I provide and not the contents of "filetoprocess".
Can anyone please give me a clue?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running Perl program using backquotes
by sachmet (Scribe) on Apr 18, 2001 at 02:04 UTC | |
by nysus (Parson) on Apr 18, 2001 at 02:16 UTC | |
|
Re: Running Perl program using backquotes
by mothra (Hermit) on Apr 18, 2001 at 03:20 UTC | |
by nysus (Parson) on Apr 18, 2001 at 05:38 UTC | |
|
Re: Running Perl program using backquotes
by Beatnik (Parson) on Apr 18, 2001 at 12:16 UTC | |
by nysus (Parson) on Apr 18, 2001 at 14:11 UTC | |
by Beatnik (Parson) on Apr 18, 2001 at 14:38 UTC | |
|
Re: Running Perl program using backquotes
by Anonymous Monk on Apr 18, 2001 at 21:41 UTC |