[Tutor] shebang problem

Alan Gauld alan.gauld at btinternet.com
Sun Nov 5 01:47:34 CET 2006


brian at gottlob:~/test$ ls -la shebangtest.py
-rwxr-xr-- 1 brian brian 68 2006-11-04 02:29 shebangtest.py

so the file is called shebangtest.py...

> brian at gottlob:~/test$ shebangtest
> bash: shebangtest: command not found

but you try to run shebangtest...

bash can't find the file. you didn't put the .py on the end
Also you may not have . in your path. For security reasons it isn't 
there by default.

Try

brian at gottlob:~/test$ ./shebangtest.py

HTH,

Alan G. 




More information about the Tutor mailing list