in reply to Passing ouput between program

$ ls | more $ perl myscript1 | myscript2

You can do this using a pipe |. In the first example the output of the ls command is piped to more so you get the results one screenful at a time. In the scond the output of myscript1 is piped to myscript2 which will use it as input. myscript2 of course needs to be expecting the input from myscript1 to appear in STDIN for this to work.

Hope this helps.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Passing ouput between program
by Anonymous Monk on Jul 17, 2001 at 11:28 UTC

    Thanks a lot for the valuable info. It helped me.

    Manoj

    Edit ar0n 2001-07-17