[SunHELP] piping into shell script


Thu May 22 14:34:30 CDT 2003


I'm a little confused on where to start if I wanted to pipe stdin into my
own ksh script which I could then pass on to a binary such as lp.
ie:
echo "this is a test" | newscript myprinter

newscript
~~~~~~~
#1 /bin/ksh 
 lp -d$1 -olandscape ...-o ....(more parameters)   #somewhere on this line,
handle stdin and pass it to this lp command



More information about the SunHELP mailing list