Operating System - HP-UX
1833762 Members
2326 Online
110063 Solutions
New Discussion

printer job re-send problem

 
j773303
Super Advisor

printer job re-send problem

Hi expert,
I've a query about lpsched. The network is not stable. Sometimes it would dis-connection, and networking will live after 10 seconcds.

in the such situration, while I use "lp" to print out job, the job would queued in the network down. But the print job would not re-send while networking was back.

My question is, is lpsched would se-send job if the job queued? how to do it? Thanks in advanced.
Hero
2 REPLIES 2
F Verschuren
Esteemed Contributor

Re: printer job re-send problem


if you stop/start te print deamons it will alsow resend the jop.

be aware that if you have manny jops (>100)the stop start can take over more than a our. so if you are plannng to stop start every our make sure that the queue is not filled to match.

I think you can set the resend alsow whit in lpsched, if you turn it in it will resent every 2 ours. (at this time I can not find how)
Bill Hassell
Honored Contributor

Re: printer job re-send problem

Since the network is so bad, you'll have to write a script to monitor the network status, then restart the lp spooler. You can just use lpshut and lpsched to restart the spooler. However, since there are different ways to send print jobs, the spooler may not be successful in shutting down all the pending jobs, so your script will have to find all lp jobs and issue various kill signals with waits in order to terminate everything.


Bill Hassell, sysadmin