On 03/02/12 09:55, lina wrote:
On Friday 03,February,2012 05:32 PM, Jon Dowland wrote:

while true; do
ssh server && break
done


Thanks for both of you,

the two ways once ssh server,
it stayed in server and won't come back and proceed the rest.

I don't fully understand your follow-up, but to explain my solution: it will loop as long as the ssh process returns an error code. So if the ssh session connects successfully, upon ending the session, it will return a success code and the loop will stop.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f2bf7a8.9060...@debian.org

Reply via email to