in reply to Re: pass variable to another process when invoking from command line
in thread pass variable to another process when invoking from command line

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: pass variable to another process when invoking from command line
by gaal (Parson) on Dec 27, 2006 at 13:33 UTC
    You have three different languages seemingly confused (sh, awk, and Perl).

    If the second program is a shell script, while (my $var = <STDIN>) is wrong. (You probably need something like read var.) If it is in Perl, you can't invoke awk just by mentioning it; you need system or something like that.