I am try to execute a block of commands on a different server using a shell script
Can anyone please help me on this
while [ $RecordCount -gt 0 ] do ex
Just stream those commands into ssh stdin, like:
ssh remoteserver << EOF command1 command2 command3 ... EOF
<< here means here-doc - a multiline quote.
<<