Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Have to recreate SCO remote printer everytime it stops printing 1

Status
Not open for further replies.

blikbeker

Programmer
Mar 16, 2011
3
ZA
Why do I have to recreate (delete & create) a remote printer in scoadmin? Everytime that a printer stops working, I have to cleanout the queue, and when I send the testprint, the printjob stays in the queue. The only way to get the printer to work again is to recreate. Any setting I have missed, or anything I can do to prevent the recreation of printers.
 
I've wrote 2 commands (in ksh):
Code:
kill -15 $(ps -e | awk '$NF=="lpd"{print $1}')
rm -f /usr/spool/lpd/lock /usr/spool/lpd/*/lock
Code:
/usr/lib/lpd &
wait
Then, when a remote printer stops working:
1) execute lpdstop
2) turn off the printer's AC power
3) cleanout the queue
4) turn the printer back on
5) execute lpdstart
6) send a testprint

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top