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).
Diego Iastrubni wrote:
unplug it? in mdk it should work...
ביום שלישי, 18 בפברואר 2003, 14:40, כתבת:
Hi,
I am looking for a way to deactivate/reactivate a USB device on Linux
(RH7.3), in my case a Lexmark printer.
=================================================================
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]
-- 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]
