Hi All,
We have 2 servers A and B.
B is having a sctipt called b.sh in path /home/dev/scripts.
Now my requirement is i want to execute b.sh from server A.
Kindly help me.
Hi All,
We have 2 servers A and B.
B is having a sctipt called b.sh in path /home/dev/scripts.
Now my requirement is i want to execute b.sh from server A.
Kindly help me.
We dont know your OS nor shell used...
Hi,
Enable password less login between server A and B
then execute the following
ssh username@serverB -t "sh pathto the script"
eg
ssh xyz@serverB -t sh /home/dev/scripts/abc.sh
Do you want to run the script on server B controlled from server A or do you want to run it on server A?