I am working with fred's texteffect script, but when i run it on my web server this error.
Array ( [0] => sh: ./texteffect.sh: /bin/bash^M: bad interpreter: No such file or directory [1] => sh: ./texteffect.sh: /bin/bash^M: bad interpreter: No such file or directory )
After adding "bash" in code line its giving this error.
Array ( [0] => ./texteffect.sh: line 211: : command not found [1] => ./texteffect.sh: line 236: : command not found [2] => ./texteffect.sh: line 239: : command not found [3] => ./texteffect.sh: line 244: syntax error near unexpected token ` ' [4] => ./texteffect.sh: line 244: `usage1() ' )
1
Array ( [0] => ./texteffect.sh: line 211: : command not found [1] => ./texteffect.sh: line 236: : command not found [2] => ./texteffect.sh: line 239: : command not found [3] => ./texteffect.sh: line 244: syntax error near unexpected token ` ' [4] => ./texteffect.sh: line 244: `usage1() ' [5] => ./texteffect.sh: line 211: : command not found [6] => ./texteffect.sh: line 236: : command not found [7] => ./texteffect.sh: line 239: : command not found [8] => ./texteffect.sh: line 244: syntax error near unexpected token ` ' [9] => ./texteffect.sh: line 244: `usage1() ' )
1
I have also change path of script but its not working. script permissions are 0755. And its a linux server.
ImageMagick Version 6.6.3-4
Please help me, it is very important for my project.
I think you might have a corrupted script file with bad line endings. Many of the lines referenced are empty lines. That makes me think that the line endings for those lines or the lines just prior are incorrect.
Open the file in a text editor that allows you to set the line endings to new lines only (nl or \n). See if that helps.
What kind of server are you using and what software is it running? What is the web site?