LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-10-2005, 08:42 PM   #1
tuneout
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian 3.1 Sarge
Posts: 27

Rep: Reputation: 15
script to run when flash drive plugged in


hey, i was wondering if it was possible to have a script run every time my USB flash drive is plugged in that will sync a folder in my home folder with a folder on the drive.
 
Old 10-11-2005, 12:59 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Setup autofs and then create a script to check if the usb is mounted, if it detects that it is, have it run the sync you want done or just simply invoke the script yourself once the drive is mounted.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
execute shell script when USB drive plugged in OneSeventeen Linux - Hardware 2 10-28-2005 10:27 AM
Boot an run linux on USB flash drive possible? zahoo Linux - General 1 03-20-2005 03:12 PM
Konqueror won't run after digital camera is plugged in - Help! justintime32 Mandriva 1 02-26-2005 11:25 PM
Suggestions needed for a OS to run on a FLASH DRIVE kemplej Linux - Distributions 1 11-02-2004 05:23 PM
How to recognize HD plugged in run-time with RH9 marceluda Linux - Hardware 3 06-01-2004 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:19 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