On server A, I want to issue the following commands to Server B through ssh.
service network stop
sleep 5
service network start
The problem is because I issued a network 'stop', then my current ssh connection is lost as well. Therefore I cannot execute the succeeding commands (sleep 5 and service network start). Note that I cannot use (service network restart).
Does anyone have a workaround / solution for this?
No comments:
Post a Comment