Re: how to check the server can be connected or not

2012-02-06 Thread lina
On Tue, Feb 7, 2012 at 3:41 AM, Karl Vogel wrote: >>> On Fri, 3 Feb 2012 11:49:22 +0800, lina said: > > L> Hi, a server is closed, but will start in future, sooner or later, I > L> wish to access in the first time it's open.  I tried: > > L> while ( ssh server ) do sleep 60 done > L> wall < serve

Re: how to check the server can be connected or not

2012-02-06 Thread Karl Vogel
>> On Fri, 3 Feb 2012 11:49:22 +0800, lina said: L> Hi, a server is closed, but will start in future, sooner or later, I L> wish to access in the first time it's open. I tried: L> while ( ssh server ) do sleep 60 done L> wall < server_open.txt Instead of polling the server, could you have i

Re: how to check the server can be connected or not

2012-02-03 Thread Juan Sierra Pons
2012/2/3 lina : > Hi, > > a server is closed, but will start in future, sooner or later, > > I wish to access in the first time it's open. > > I tried: > > while ( ssh server ) > do > sleep 60 > done > > wall < server_open.txt > > actually I don't know how to write the while part, > > thanks for su

Re: how to check the server can be connected or not

2012-02-03 Thread Dom
On 03/02/12 15:05, Jon Dowland wrote: 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

Re: how to check the server can be connected or not

2012-02-03 Thread lina
On Friday 03,February,2012 11:05 PM, Jon Dowland wrote: 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 t

Re: how to check the server can be connected or not

2012-02-03 Thread Jon Dowland
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 t

Re: how to check the server can be connected or not

2012-02-03 Thread lina
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. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subj

Re: how to check the server can be connected or not

2012-02-03 Thread Jon Dowland
while true; do ssh server && break done -- 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/4f2ba9b8.4050...@debian.org

how to check the server can be connected or not

2012-02-02 Thread lina
Hi, a server is closed, but will start in future, sooner or later, I wish to access in the first time it's open. I tried: while ( ssh server ) do sleep 60 done wall < server_open.txt actually I don't know how to write the while part, thanks for suggestions, Best regards, -- To UNSUBSCRIB