← Back to team overview

sslug-teknik team mailing list archive

Bad interpreter

 

Hej igen,
 
Når jeg prøver at bruge php i commandline for jeg denne dejlige besked:
 
-bash: /path to script/script.php: /usr/bin/php^M: bad interpreter...
 
scriptet indeholder #!/usr/bin/php på første linie.
 
which php returnere: /usr/bin/php
 
Jeg har prøvet:
chmod +x script.php
 
men det hjælper heller ikke.
 
hvis jeg kører scriptet med php script.php er der ikke noget problem.
 
nogen ideer ?
 
Mvh
Toke
 

 <http://www.concare.net/logo.gif> 
Concare it  <http://www.concare.net/mail-bullet.gif>  Humleorevej 10, Vigersted  <http://www.concare.net/mail-bullet.gif>  DK-4100 Ringsted
Tlf. (+45) 43 71 39 99  <http://www.concare.net/mail-bullet.gif>  Fax. (+45) 43 71 39 98 

Mail: th@xxxxxxxxxxx <mailto:th@xxxxxxxxxxx>   <http:///>  Web: www.concare.net <http://www.concare.net/> 

This E-mail and the information it contains, is intended to be a privileged and confidential communication only to the person or entity to whom it is addressed. If you have received this E-mail in error, please notify us by telephone and destroy the E-mail.



Follow ups