A quick search on google gave me the following site (which does a reasonable job of explaining redirection (which is what is happening here)... http://www.unix.org.ua/orelly/unix/upt/ch13_01.htm
What I do is have the most basic filter to pass the data to the lp spooler, for example (hp/ux): lp -d acctg Which takes stdout from the calling program & passes it to stdin for the lp command... i.e. the flow would be: usd|lp -d acctg So the output from usd would pipe through to lp. When we come to setting up the printer as a network device I always use the native unix spooler to manage the requests; in that way we don't need any fancy scripting in the UniVerse driver file to pass the request onto a remote spooler. The flow would then be UniVerse Spooler ==> Unix Spooler ==> Remote Spooler Of course, the UniVerse spooler now only serves to take the spool request & pass it on (we lose a little visibility from the UniVerse side) but the Unix spooler has all the scripting required to handle the pass off to the remote spooler & handle errors. Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Cipollina Sent: Monday, March 21, 2005 12:26 PM To: [email protected] Subject: Re: [U2] Unix Print Commands... The '<' is the input redirection character and the &1 is the first parameter passed into the shell script. It looks like this is trying to pass the first parameter passed into the shell script into the slp -c132 -i0 -n command. On Mon, 21 Mar 2005 14:42:36 -0500, Brutzman, Bill <[EMAIL PROTECTED]> wrote: > When printing to our legacy Printronix P300 printer on our HP-Ux box, > the UniVerse spooler config is... > > Printer Name : PR0 > Unix PathName : /dev/c1t0d0_lp apparently direct to the > hardware. > Driver : /var/spool/uv/PR0.drvr containing... > > slp -c132 -i0 -n <&1 > cat - > > [slp] set print options for a non-serial printer...ugh > [-c132] 132 columns > [-i0] indent zero > [-n] set page size to infinity > > I need help understanding what the "<&1" does and how it all works > with "cat -". > > That way, perhaps we could get the printer to work as a shared network > device. > > Suggestions would be appreciated. > > --Bill > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
