[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Tue, Feb 7, 2012 at 3:41 AM, Karl Vogel <vogelke+debian@pobox.com> wrote:
>>> On Fri, 3 Feb 2012 11:49:22 +0800, lina <lina.lastname@gmail.com> 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 it send a mail message to
>   a special address when starting SSH?  If you're running the while-loop
>   on your workstation, set up an extension address like
>        lina-wall@your.workstation.com
>   which forwards incoming mail from the SSH server to /usr/bin/wall.
>
>   If you use Postfix, see the http://www.postfix.org/local.8.html sections
>   on ADDRESS EXTENSION and EXTERNAL COMMAND DELIVERY.

Sorry, I can't tell which one I used. I can use "mail" there

start reading Postfix

Thanks

>
> --
> Karl Vogel                      I don't speak for the USAF or my company
>
> The patient is tearful and crying constantly.
> She also appears to be depressed.        --actual comment on hospital chart
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: 20120206194121.43109BF9C@kev.msw.wpafb.af.mil">http://lists.debian.org/20120206194121.43109BF9C@kev.msw.wpafb.af.mil
>


Reply to: