LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11: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, 08:50 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
In KDE, autorun settings can be found in the Control Center > Peripherals > Storage Media.
 
Old 09-21-2006, 10: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, 05:21 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

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


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
auto starting when cd is inserted oingram Linux - Software 1 11-10-2005 02:54 AM
auto starting when cd is inserted oingram Linux - Software 1 11-05-2005 08:12 AM
Howto launch script at startup sendas4 Linux - Newbie 2 03-10-2005 11:51 AM
Auto Mount CD ROM while inserted anand_kt Linux - Software 2 01-12-2005 08:31 AM
Usb key auto-mounted twice matthias49 Linux - Hardware 0 12-26-2004 10:09 AM


All times are GMT -5. The time now is 03:42 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration