I am trying to run a .sh script on a remote server and am getting the following error message.
Really not sure what I am doing wrong.
The command I am using is: $ssh user@remoteserver path of file to be executed/Test.sh
Which returns the error: ksh: syntax error: `(' unexpected
Any pointers would be great :)
bash path/to/script, or, make sure the script has an appropriate#!as the first line so the correct shell is automatically selected.