I have a KornShell (ksh) script in Server A that will run a script in ServerB.
#!/bin/ksh/
ssh user@server "/path/script.sh"
The script permissions are as follow:
-rwxrwxrwx 1 user dba 75 Jun 11 10:00 script.sh
I checked the existence of 'ksh' in /bin and its there. (bash is not)
When I try to run the script I get
./script.sh: cannot execute
What could be happening? I tested the ssh command manually and it works.
Its a SunOS system.