LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-25-2006, 08:30 PM   #1
LiquidSlumber
Member
 
Registered: Jun 2005
Location: columbus ohio
Distribution: Ubuntu and Fedora
Posts: 36
Blog Entries: 2

Rep: Reputation: 15
Question is it possible to automatically execute a command when cd is mounted?


I was wondering if it's possible to setup my computer to automatically execute a shell command when my computer mounts a CD or DVD? I want to execute a command to share my DVD drive with my other computer using xine. http://cvs.sourceforge.net/viewcvs.p...viewcvs-markup
 
Old 03-26-2006, 01:18 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Yes, there are several approaches:

1. You can have an "autorun" on your media that gets invoked when the media is inserted, e.g.:
http://www.linuxquestions.org/questi...d.php?t=351207

... or ...

2. You can configure your desktop (for example, KDE) to invoke a specific program when media is inserted, e.g.:
http://forums1.itrc.hp.com/service/f...hreadId=962851

3. Here's another link that explains a bit further:
http://www.ubuntuforums.org/archive/...p/t-77146.html


'Hope that helps .. PSM

Last edited by paulsm4; 03-26-2006 at 01:22 AM.
 
  


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
Execute an application automatically after startx gilan Debian 6 03-24-2005 10:34 PM
Can't execute NFS mounted script hexbox Linux - Networking 2 02-03-2005 05:59 PM
I can't execute scripts in mounted fs Dasc Linux - General 3 12-16-2004 06:36 PM
i need to write a program it has to execute automatically ykirankumar Linux - Software 5 08-31-2004 12:34 AM
? to add a command to execute automatically when xwindows loads up Kasperisa Linux - Newbie 2 08-02-2003 10:16 AM


All times are GMT -5. The time now is 09:25 PM.

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