an other user rescently posted on the forums with the same error. I finally determined that the issue was with the way the file had been saved before uploading to the server. I need to update that wiki article, but in the mean time...
You can fix this using one of two methods. Pick the one that seams easiest to you.
A. Open your script in notepad. Make sure that your formatting is still right, no line wraps or anything like that. Now click File Save as.
Type in your script name (or select it to overwirte)
set the Save as type to All files, and the encoding to UTF-8.
Now upload your script and set permissions on it again.
B. from ssh (putty) cd into your backups directory where the shell script is. Open the script with nano. The command will look like
nano -w script.sh
If my suspicions are correct you will notice at the bottom of the screen it says "converted from DOS format". Press ctrl and o at the same time to save (write Out) and then ctrl and x at teh same time to exit.
Repete this process for each shell script you have. With luck your scripts will now work.
art.googlies.net - personal website