LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


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

Rep: Reputation: 15
Cool howto hotplug 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?

Hope someone can help!

Regards
Michael from Melbourne
Australia

Last edited by compused; 10-13-2006 at 11:15 AM.
 
Old 10-14-2006, 04:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mounting usb from command line - hotplug? FogSwimmer Ubuntu 4 09-28-2006 04:56 AM
Newbie:Command to read from USB MEMORY marlon2006 Linux - General 2 06-06-2006 05:48 PM
howto run the htpasswd command with input from file for 500 usernames !! PK2K Linux - Software 4 02-02-2006 03:54 AM
howto edit etc/hotplug/blacklist??? lek Slackware 1 09-09-2005 04:47 PM
run java programs from the command line...howto? rmanocha Programming 3 03-06-2004 03:50 AM


All times are GMT -5. The time now is 03:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration