Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Linux, BSD, other *nixes & Open Source Software » CD autorun scripts for FC3 or any other new linux distros
Closed Thread
Old 08-08-2005, 01:16 PM   #1 (permalink)
 
Newb Techie

Join Date: Aug 2005

Posts: 1

cpraveen84

Default CD autorun scripts for FC3 or any other new linux distros

Hello group,

I have a problem creating a CD autorun script for linux. I have created a sample autorun file and placed it on the CD for testing. The contents of the file are as follows :

#!/bin/sh
dir=$(echo $0 |sed 's/autorun//')
cd $dir
fullpath=$(pwd)
exec konqueror $fullpath/default.html

But this script is not exectuted once i insert a CD into the drive. However, if i run the script from the terminal it works just fine.

I need to tackle this situation and need help.

Thank All of You.
cpraveen84 is offline  
Old 08-08-2005, 02:05 PM   #2 (permalink)
 
Ultra Techie

Join Date: Nov 2004

Posts: 905

Sevoma is on a distinguished road

Send a message via AIM to Sevoma
Default

Linux does not search for aitorun files. That is something windows does.
__________________
<a href=\"http://truecombat.us\"><img src=\"http://www.truecombat.us/images/buttons/tcusbannersmall.jpg\"></a>

Sevoma Web Hosting
Sevoma is offline  
Old 08-08-2005, 02:39 PM   #3 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

change the /etc/fstab file, I believe you can set it to automatically mount the cdrom when a cd is inserted, what happens after that will depend on what type of file it is, senidng it to be listed in a file manager like konqueror shouldnt be too tough-----see the kwik disk source code
horndude is offline  
 
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On