slp -c132 -i0 -n <&1
     cat -
I need help understanding what the "<&1" does and how it all works with "cat
-".

OK... I'm not an HP-UX guy, but is that really all that's in the script?

"<$1" tells the slp command to take the first argument of the command line as 
it's input.

But this seems strange to me.  UniVerse passes the UNIX user id in $1:

$1 UNIX user ID of the user who spooled the job
$2 Job ID of the print job
$3 Size of the print job in bytes
$4 Job description
$5 Form assigned to the print job
$6 UniVerse printer name
$7 SETPTR (UNIX) line length
$8 SETPTR (UNIX) page length
$9 SETPTR (UNIX) eject flag (1 = EJECT, 0 = NOEJECT)
Shift the argument stack down to reference the following two arguments:
$1 SETPTR (UNIX) banner flag (1 = print banner, 0 = suppress banner)
$2 SETPTR (UNIX) USEROPTS options


On our system we create a unix and UniVerse printer.  Our common driver is:
-----
while [ ! -z "`lpstat -r | grep not `" ]          
 do                                               
     /etc/init.d/lp start                         
     sleep 30                                     
 done                                             
cat - | lp -o nobanner -d${Prnter}                
# End of Script                                   

This checks to see if lp is running, if not it starts it.  It then shoots the 
input (-) to lp, suppressing the Unix banner, setting the destination to be the 
same as the UniVerse printer ID.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to