Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-25-2006, 08:30 PM   #1
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.
Old 03-26-2006, 01:18 AM   #2
LQ 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.:

... or ...

2. You can configure your desktop (for example, KDE) to invoke a specific program when media is inserted, e.g.:

3. Here's another link that explains a bit further:

'Hope that helps .. PSM

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


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 > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration