Hello All,
I have a shell script A which is in one unix box. Also i have a script B in another unix box. Now i'm struggling to find a way to invoke A shell script from B shell script. Is it possible to do this in any way..Request you anybody please help me in this point.
Thanks in advance.
pludi
August 8, 2009, 3:58pm
2
SSH, eg on host B:
ssh host_a '/path/to/script_a'
you can do this with ssh... something like:
ssh user@yourbox command
but you need passwordless login configured or use "expect" to give login credentials.
Thanks for your propmt response. could you please some dummy script to do that to have better idea how to go about that...
the script IS in the two above answers... thats all! if i've to do something like that, i would use this method...
I'm getting the error ssh: XXXXX: host/servname not known
where XXXXX my hostname..Please help
I did the same what ever mentioned.
YYYYY-Box A
XXXXX-Box B
I'm in YYYYY box and trying to invoke script on XXXXX.
ssh user@XXXXX '/home/sr91048/example.sh'
take the ip instead of the hostname.