[Sussex] CUPS - stopping/starting an individual queue
Nico Kadel-Garcia
nkadel at gmail.com
Tue Nov 6 10:21:17 UTC 2007
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.
More information about the Sussex
mailing list