On Wed, 29 May 2002 13:48:43 +0300 (IDT), Dan Kenigsberg <[EMAIL PROTECTED]> 
wrote:
> 
> However, I would like to run a script whenever I insert my DiskOnKey to the usb
> socket, and another one (well, it could be the smae one but with another arg)
> when I unplug it.

Why don't you add a simple test like [ -s <file> ] or [ -d <dir> ]
for a file or dir that are exist on this DiskOnKey, then you know if
it is plugged (file/dir exist) or unplugged (does not).

Ehud.


-- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:[EMAIL PROTECTED]          Better  Safe  Than  Sorry

=================================================================
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]

Reply via email to