LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Autorun.sh script to mount CD and run .bin file (https://www.linuxquestions.org/questions/linux-general-1/autorun-sh-script-to-mount-cd-and-run-bin-file-67620/)

kulkarni08 06-23-2003 11:55 PM

Autorun.sh script to mount CD and run .bin file
 
Hi,
I am a newbie to Linux platform and shell scripting. I am looking for a autorun.sh script which should mount a CDROM and then run a setup.bin script located inside a folder - /linux/setup.bin .
I want to include this autorun.sh script on my CDROM. Can anyone help ?
Thanks
Kulkarni

cnjohnson 06-24-2003 08:05 AM

Re: Autorun.sh script to mount CD and run .bin file
 
Quote:

Originally posted by kulkarni08
Hi,
I am a newbie to Linux platform and shell scripting. I am looking for a autorun.sh script which should mount a CDROM and then run a setup.bin script located inside a folder - /linux/setup.bin .
I want to include this autorun.sh script on my CDROM. Can anyone help ?
Thanks
Kulkarni

You can certainly create such a scipt, but you cannot make it "auto run." That property is a function of the computer mounting the CD. The target machine, for example, would have to be set to auto-mount the CD, and then check for the auto run script. Both KDE and GNOME, among several, can enable software to do this "auto mount and run (or play music or whatever); but most of the linux users in my linux group turn this functionality off.

Cheers--
Charles

moses 06-24-2003 01:01 PM

Take a look at the userspace daemon autorun:
http://autorun.sourceforge.net/
It may be what you want.


All times are GMT -5. The time now is 04:54 PM.