[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bash et lancement script python



Bonjour,

Depuis toujours quand je mettais en première ligne d'un script python :
#!/usr/bin/python

Python était lancé sur le script.
Pourquoi maintenant (Debian Squeeze), la commande ./monscript.py donne :
line 1: #!/usr/bin/python: Aucun fichier ou dossier de ce type

$ sh ./monscript.py 
./monscript.py: 1: #!/usr/bin/python: not found

$ bash ./monscript.py 
./monscript.py: line 1: #!/usr/bin/python: Aucun fichier ou dossier de ce type

$ which python
/usr/bin/python

python monscript.py marche. Je ne comprends pas.
Auriez-vous une explication ?

-- 
Alain Rpnpif


Reply to: