Ira Abramov wrote:
Quoting David Harel, from the post of Wed, 19 Feb:I do not like sudo. For me the name is bad enough but seriously for this small problem sudo is a cannon to kill a fly with.
Ok,
Unplug works but it is clumsy. Here is a better one. I use the command modprobe with -r printer to release it and omitting the -r to reload it. trivial, isn't it?
Since this is a privileged command I had to wrap it with a small program I wrote in C that does just what we said and to it's executable I set the setuid bit. Now it resides in /usr/local/bin and everyone can use it. (in my case only me but using different user id - schizophrenic).
tried sudo?
You are right about that. This was a temporary solution until I convinced samba and the w2000 client to use network printer. Just a few minutes ago I finished arguing with the both (probably, writing those words will make the printing mechanism blow into my face again).
the question is of course why disconnect a printer at all. it's easier to
pass print jobs via the net to remote queues than to keep stealing the
printer from desk to desk :)
--
Thanks.
David Harel,
==================================
Home office +972 4 6921986
Fax: +972 4 6921986
Cellular: +972 54 534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email: [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]
