Hey Alan

>From: "Alan G" <[EMAIL PROTECTED]>
>To: "Alberto Troiano" <[EMAIL PROTECTED]>, <tutor@python.org>
>Subject: Re: [Tutor] Linux app question
>Date: Thu, 18 Aug 2005 08:25:51 +0100
>
>>1.- Is there any way that the script can be started when he mounts the 
>>CDROM with the command mount /mnt/cdrom?
>
>I don't know of any way to autostart a CD program on mount in Linux.
Now we are two

>>2.- Is there any way that the script could be started by typing directly 
>>./installer instead of python installer.py?
>
>THe usual unix shebang trick will work just fine.
>
>call your install script 'install' and put
>
>#! /bin/env/python
>
>as the first line. It should then run directly with no problems.
>Assuming of course that Python is already installed on the web server!

This I didn't know, so in order to work I would have to rename installer.py 
to only installer and in the shell I would only type installer and it would 
run right??

If this work I'm done..It's godd enough to give them a CD and tell them to 
type installer to run it

Thanks

Alberto


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to