[Sussex] CUPS - stopping/starting an individual queue

Brendan Whelan b_whelan at mistral.co.uk
Tue Nov 6 14:05:56 UTC 2007


Thanks for the responses.

"which disable" gave "no disable in .............................."
disable  looks  like a very general purpose  word, I would have 
expected  something specific to CUPS.
Brendan

Nico Kadel-Garcia wrote:
> John Crowhurst wrote:
>> On Tue, November 6, 2007 09:44, Brendan Whelan wrote:
>>  
>>> I need to create a command line that will disable/stop a specific
>>> printer and then enable/start the same device.
>>> I can restart the CUPS queue with "service cups restart" but the
>>> commands given to start/stop a queue in the "Cups Software
>>> Administration Manual" of  */usr/bin/enable /printer/ and*
>>> */usr/bin/disable /printer/ *give "command not found".  Any 
>>> suggestions?
>>> Brendan
>>>     
>>
>> Type:
>>
>> which disable
>>
>> This will tell you whether disable is in /usr/bin or in some other
>> location in your path (it could be /usr/local/bin)
>>
>> It sounds like the documentation is out of date or your distro has 
>> put the
>> files in a different place.
>>   
> It's not in his PATH. That's why he can't find the command.
>
> Most Linux systems today have a little widget in /etc/profile that 
> only adds /sbin and /usr/sbin if you are a uid 0 (namely root!) user 
> at the time you source /etc/profile. Unfortunately, using "sudo" does 
> not re-source the /etc/profile, so you still don't get /sbin and 
> /usr/sbin as a sudo'ed root user. There are various ways to deal with 
> this, depending on your taste.
>
> __ Sussex mailing list
> Sussex at mailman.lug.org.uk
> E-mail Address: sussex at mailman.lug.org.uk
> Sussex LUG Website: http://www.sussex.lug.org.uk/
> https://mailman.lug.org.uk/mailman/listinfo/sussex
>
>





More information about the Sussex mailing list