Run script on USB thumb drive connection

Bill Moseley moseley at hank.org
Mon Feb 16 22:52:15 UTC 2009


On Mon, Feb 16, 2009 at 11:47:32PM +0100, Nils Kassube wrote:
> Dotan Cohen wrote:
> > 2009/2/17 Bill Moseley <moseley at hank.org>:
> > > What I want is to have the drive mounted like it normally is, then
> > > run a script and then umount the drive.  And for a bonus pop-up a
> > > window to DISPLAY 0:0 saying the rsync was complete.
> >
> > I've not tried it, but have the script wait a bit:
> > sleep 10
> 
> Or let the script mount the drive.

That's what I'm doing and it works fine.  The Script is pretty
trivial, really.

It's still getting mounted by gnome (I assume) after the script runs.
That's the part I'm wondering about -- how to stop that from happening
for this specific thumb drive.

Thanks.

-- 
Bill Moseley
moseley at hank.org
Sent from my iMutt





More information about the ubuntu-users mailing list