Results 1 to 6 of 6
i have written a autorun script as below(autorun.sh):::
#!/bin/sh
./sysinfo
---------------
where sysinfo is a c executable file. i have saved autorun.sh and sysinfo on the cd. when i insert ...
- 06-15-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 4
Problem while Autorunning a CD on ubuntu 8.10
i have written a autorun script as below(autorun.sh):::
#!/bin/sh
./sysinfo
---------------
where sysinfo is a c executable file. i have saved autorun.sh and sysinfo on the cd. when i insert the cd a dialogbox comes saying media has software for autorunning ( cancel && run) ..when i click on the
run button another dialog box comes saying: "exec format error" and sometimes " permission denied"
if anyone has solution to above problem please reply here...i am new to linux environment ..so please give a little detailing.....thank you...
- 06-16-2009 #2Just Joined!
- Join Date
- Jun 2009
- Posts
- 4
if anyone has knowledge of running auto running cd on ubuntu then plzz reply to this forum post.
- 06-16-2009 #3
In your /etc/fstab file, do you have the
options user and exec on the entry
for the cdrom drive?
autorun(1) - Linux man page
- 06-17-2009 #4Just Joined!
- Join Date
- Jun 2009
- Posts
- 4
thanx rcgreen for replying ....
my /etc/fstab already has user, exec option it looks like below:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=25b32804-099c-4a1d-a5d3-10adea6c67bd / ext3 relatime,errors=remount-ro 0 1
# /dev/sda4
UUID=c665b04f-8e86-40fc-9fb0-3d4021b02a0c /home ext3 relatime 0 2
# /dev/sda3
UUID=22779ba1-49e9-49b7-bb02-41e4c9a68b28 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/media/BINAY user,exec
- 06-22-2009 #5
maybe the program you want to run needs to be
run as root?
- 06-23-2009 #6Just Joined!
- Join Date
- Jun 2009
- Posts
- 4
thanx for the reply.... but i dont think thats the problem.... i can run that program as a normal user also.
do you have any format of wriring autorun.sh script....


Reply With Quote