[Ilugc] How to autorun html file in Linux on CD insertion?

2012-04-17 Thread Dhastha
Hi friends,

I want to create a autorun html file CD.

I tried following ways

I created a file called autorun shell script file with the content

#!/bin/sh
fullpath=$(pwd)
exec firefox $fullpath/index.html

This not working.

I want to run a html file after inserting CD. Is there any way to do this?

Thanks in advance

-- 




Cheers,

Dhastha
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to autorun html file in Linux on CD insertion?

2012-04-17 Thread Girish Venkatachalam
All these fancy window managers like Gnome have this

I dont want this on Linux. It makes the user as dumb as a Winblows user

On Tue, Apr 17, 2012 at 12:15 PM, Dhastha dhasthagh...@gmail.com wrote:
 Hi friends,

 I want to create a autorun html file CD.

 I tried following ways

 I created a file called autorun shell script file with the content

 #!/bin/sh
 fullpath=$(pwd)
 exec firefox $fullpath/index.html

 This not working.

 I want to run a html file after inserting CD. Is there any way to do this?

 Thanks in advance

 --




 Cheers,

 Dhastha
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
Gayatri Hitech
http://gayatri-hitech.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to autorun html file in Linux on CD insertion?

2012-04-17 Thread Yogesh Girikumar
On 17 April 2012 12:15, Dhastha dhasthagh...@gmail.com wrote:

 Autorun

 #!/bin/sh
 fullpath=$(pwd)
 exec firefox $fullpath/index.html


There seems to be a program for this: http://linux.die.net/man/1/autorun

Look at this as well: https://wiki.ubuntu.com/autorun

That said, autorun is kind of risky when the user does not know what is
being run automatically. And this feature can be used to run an attack
script. You get the drift.

--
Y
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc