I have written a printing program in C-shell script which accepts command-
line arguments. The usage is as follows:
print [-p printer] [-f format] [-s papersize] [-o orientation] file...
I want to adapt it so that if the user can do the following sort of
thing
ls | print -p laser -f text
ie. so that the output from ls comes out on the printer.
At the moment, you have to enter a filename to print.
Can anyone please tell me how to do this sort of thing in C-shell
programming?(The program works perfectly as it now stands, but
I would like to be able to pipe output from Unix commands such as
ls to it).
Any suggestions would be greatly appreciated!
Thanks in advance.
Tim Porter.
Forestry Authority Research (Forestry Commission).
PS. I am using SunOS 4.1.2 on Suns.