1832978 Members
2678 Online
110048 Solutions
New Discussion

Printing

 
Nate Arnold
Frequent Advisor

Printing

How can I get past shutting down the print subsystem everytime I want to add a new printer?
3 REPLIES 3
Geoff Wild
Honored Contributor

Re: Printing

You shouldn't have to when adding - only deleting - if you use the command line that is....I don't know about SAM.

On the command line:

addqueue -i 9998 -q QUEUENAME -h dnsname.yourdomain.com

To delete:

lpshut
lpadmin -XQUEUENAME
lpsched -v

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mark Grant
Honored Contributor

Re: Printing

You can't.

"lpadmin" won't allow you to add a printer with the scheduler running. However, it's not down for very long and you don't lose any print jobs.
Never preceed any demonstration with anything more predictive than "watch this"
A. Clay Stephenson
Acclaimed Contributor

Re: Printing

The UNIX lp system is old and single-threaded. There are only a few lpadmin options that are allowed while the scheduler is running --- and adding a new printer ain't one of them. Man lpadmin for details. The good news is that you can do an lpshut, lpadmin to add the printer, and an lpsched and no spool jobs are lost. Currently printing jobs will continue but true end of job data will be lost.
If it ain't broke, I can fix that.