Operating System - HP-UX
1836645 Members
1624 Online
110102 Solutions
New Discussion

Re: Enabling Print Queue's Automatically

 
kumar.s
Advisor

Enabling Print Queue's Automatically

Hi all

I have a Remote print queue in my setup ,
the print queue often get's disabled , i agree there may be some problem with the physical availability of the printer ,

My concern is , do we have a mechanism to get disable after certain period or certain retries before it is getting disabled .

Expecting your Valuable Suggesstions

Thanks
Sathish
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Enabling Print Queue's Automatically

The automatic disabling occurs as a result of the exit status of the queue's interface file. If the scripts exits with 0, all is well. You could setup a cron job to run lpstat and look for any disabled printers and reenable them but generally the "fix" requires some human intervention so that any automatic enable process really does nothing.
If it ain't broke, I can fix that.
Warren_9
Honored Contributor

Re: Enabling Print Queue's Automatically

Hi,

I had the same problem before and I edited the script for the remote printer. Comment out the line that disable the print queue while return state is not equal to 0.

GOOD LUCK!!


A. Clay Stephenson
Acclaimed Contributor

Re: Enabling Print Queue's Automatically

Except the effect of your "fix" is that as far as the system knows the job completed sucessfully and this the job is removed. It's much better to let the exit status do it's job so that 1) the job will be printed when the queue is re-enabled 2) the users are notified that the printer is disabled.
If it ain't broke, I can fix that.