I'm having a strange issue when I try and execute a shell script.
when I try to execute the script with ./scriptname.sh it just immediately returns to the prompt. The script has the correct permissions set. If I copy the script to another server it executes no problem at all.
I can execute other sh scripts on the server in question with no problem.
is there a way of troubleshooting this as I am at a loss?
Thanks in advance.