Is it possible to run one part of the ksh/sh script on one server then ssh to another server and continue with the rest of the script? or is there a way around? Anyone had experience with this ?
here are some details:
I have a user with which I don't have to authenticate each time I access a server, so I can hop from one server to another without any keyboard interaction
I've already tried this, wanted to seperate logic into another script then :
MYSCRIPT="nohup ksh myscript.ksh > mylog.log &"
ssh servername ${MYSCRIPT}
I tried this but it doesn't seem to execute this script on another server
and one more thing the whole code above is part of the for loop and I basically execute same script for list of servers.
For testing purposes, the list has two servers, for some weird and twisted reason only the last/seconds server script works as I expect.
another detail:
all server can see myscript.ksh it is visible and executable to all of them
myscript.ksh
, notksh myscript.ksh
. – Mikel Feb 12 '11 at 20:47