Reputation: 4812
Hi I have wrote a script for a webpage in python. However when I run it I seem to get this error
/usr/bin/env: python\r: No such file or directory
Premature end of script headers: users.cgi
I'm not sure what is causing it, so far I have:
Could someone help me or point me in the right direction. I can't work out what is going wrong. There is very little in the apache error log. Your help will be greatly appreciated
Upvotes: 0
Views: 635
Reputation:
You've uploaded the file with DOS/Windows line endings. UNIX script executables have to be saved with UNIX line endings.
Upvotes: 1