LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-20-2006, 10:43 PM   #1
adamrosspayne
LQ Newbie
 
Registered: Jun 2006
Posts: 19

Rep: Reputation: 0
howto auto-launch a script when usb key inserted?


i have a script that i want to launch automatically upon insertion(mounting) of my usb key. usually after mounting my usb key i fire up konsole, then type:

cd /media/sda1
./backup

How can i automate this?
 
Old 09-21-2006, 07:50 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
In KDE, autorun settings can be found in the Control Center > Peripherals > Storage Media.
 
Old 09-21-2006, 09:39 AM   #3
adamrosspayne
LQ Newbie
 
Registered: Jun 2006
Posts: 19

Original Poster
Rep: Reputation: 0
I need to do this under the knoppix dvd boot enviroment

thanks for the advice. unfortunately its a knoppix dvd im booting from. any ideas?
 
Old 09-22-2006, 04:21 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
AFAIR you can save parameters on a floppy in Knoppix. You would then have to change the .KDE-file and save it there. During boot you can activate a help screen -- look there or in the internal documentation for saving on and restoring from floppy.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
auto starting when cd is inserted oingram Linux - Software 1 11-10-2005 01:54 AM
auto starting when cd is inserted oingram Linux - Software 1 11-05-2005 07:12 AM
Howto launch script at startup sendas4 Linux - Newbie 2 03-10-2005 10:51 AM
Auto Mount CD ROM while inserted anand_kt Linux - Software 2 01-12-2005 07:31 AM
Usb key auto-mounted twice matthias49 Linux - Hardware 0 12-26-2004 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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