Hello,
I am doing below steps:
1. Copying one script to remote server using SSH.
2. executing that script using SSH.
Below is the command:
Quote:
#scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=10 /home/ravmane/sysmgmt/sentinel_scripts/unix_su_root.sh testserver1:/tmp/;ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=10 testserver1 "/tmp/unix_su_root.sh"
|
On Linux server the script executes and exit from the remote server properly.
But on Solaris it executes the script but does not exit. We have to make it manually exit using ^C.
I want to run it on many Solaris servers.
The script last lines are below:
Quote:
/etc/init.d/service-rem start
sleep 5
ps -edf | grep rem
|
Any help/hint would be much appreciated.
Thanks,
Ravi