LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Closed Thread
  Search this Thread
Old 10-13-2006, 10:13 AM   #1
compused
Member
 
Registered: Oct 2006
Location: Melbourne Australia
Distribution: centos and redhat 8
Posts: 91

Rep: Reputation: 15
howto 'hotplug' a usb memory then autorun a command


Dear Forum
Specific directions for help here are proving to be elusive. After a usb memory stick is plugged into a particular computer, I would like a script to initiate the firebird database backup command (the ./gbak command). Then would it be possible to automatically unmount the device (i.e. usb LED goes out indicating it can be removed)?

The OS is centos 4.3 - that has 'hot plugging' functionality as I understand.

So I imagine:
-(whatever scripts to have a specific usb stick recognised and mounted)
-cd /opt/firebird/bin
-./gbak -v -b -user -password /opt/firebird/database_file /usb_device/
-then a script to automatically unmount the usb device (i.e. light goes out) so I can see its finiished

After I obtain a usb memory stick, does it need to be formatted in any particular way for linux?

Appreciate any help!

Regards
Michael from Melbourne
Australia
 
Old 10-14-2006, 09:47 AM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Please continue here
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto hotplug usb memory then run a command compused Linux - Newbie 1 10-14-2006 03:23 AM
mounting usb from command line - hotplug? FogSwimmer Ubuntu 4 09-28-2006 03:56 AM
Newbie:Command to read from USB MEMORY marlon2006 Linux - General 2 06-06-2006 04:48 PM
HOWTO autorun a program on start up? kodaku Linux - Software 6 08-12-2004 09:40 PM
autorun application program on hotplug kevinatkins Linux - Software 0 02-08-2004 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration