[Tutor] Linux app question

Alan G alan.gauld at freenet.co.uk
Thu Aug 18 19:10:28 CEST 2005

>>THe usual unix shebang trick will work just fine.
>>call your install script 'install' and put
>>#! /bin/env/python

It might be /usr/bin/env...

>>as the first line. It should then run directly with no problems.
>>Assuming of course that Python is already installed on the web 
> 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??

Yes, in fact you dont really need to rename the file, its just a 

All Unix scripts use this trick including shell scripts, awk, perl, 
ruby etc. It's been standard Unix practice for many years.

Alan G. 

More information about the Tutor mailing list