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