The error:
bad interpreter: No such file or directory can be attributed to not having the bash shell script installed, particularly if the first line of your script is as follows (spaced inserted after backslash to pass SecFilter):
#!/ bin/ bash However, it is more likely due to the formatting of your file. If you FTP'd the file from a Windows machine onto a Linux server, then the file will contain Line Feeds (CR/LF's = Carriage Return and Line Feeds) instead of simply Carriage Returns (CR's). There are several solutions available that will let you reformat the file to CR before uploading it to your server:
You can use Perl and run the following command on the file:
perl -i -pe's/\r$//;' <filename> </filename>
Alternatively, you can use the DOS2UNIX utility to clean up the file within a Windows Command Prompt (Browse to Start -> Run... -> and type "cmd.exe" to open the command prompt). Copy your file and dos2unix.exe to the same directory, and execute:
dos2unix.exe <filename> </filename>
Once you've converted your DOS file back into a UNIX (Linux friendly) format, make sure you upload it in ascii mode via your FTP client (not binary mode).
All Content © 2005 - 2008 Contract Web Development, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Powered by Drupal
1 day 6 hours ago
1 day 19 hours ago
2 days 7 hours ago
2 days 7 hours ago
2 days 12 hours ago