LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-21-2003, 07:50 AM   #1
Daem0hn
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Gentoo 1.4
Posts: 43

Rep: Reputation: 15
command running on cd in


how do i make a command run on the insertion of a cd into my /dev/dvd or /dev/scd0 cdrom drive???

running RedHat 9 under Gnome 2
 
Old 07-21-2003, 02:45 PM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
most likely, you'll have to edit "cd" source code
why do you want to do it?
 
Old 07-22-2003, 02:49 AM   #3
Daem0hn
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Gentoo 1.4
Posts: 43

Original Poster
Rep: Reputation: 15
when i put a cd in the cdrom drive, i want to create a link on the desktop to it (the same as you get when you right click dekstop and select disks > cdrom) then i want it to automatically execute a script on the cdrom

even just the execution of a script on a cdrom would be cool
 
Old 07-22-2003, 03:13 AM   #4
Daem0hn
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Gentoo 1.4
Posts: 43

Original Poster
Rep: Reputation: 15
ok, if noone here can tell me how to, can someone tell me where the script is that makes nautalius popup with the cdrom contents when you insert / mount it???
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a command across several directories Poetics Linux - Newbie 2 05-15-2005 07:26 AM
sh command running as nobody chongluo Linux - Security 1 12-01-2004 06:03 AM
Running a command from anywhere tez Linux - Newbie 5 02-27-2004 10:07 PM
Running a command at Startup TuxTimo Linux - Newbie 6 02-27-2004 05:11 PM
auto running command.... / what have i done :| Gear_freak2000 Linux - General 13 06-12-2003 03:47 PM


All times are GMT -5. The time now is 10:34 AM.

Main Menu
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