Re: how to check the server can be connected or not
On Tue, Feb 7, 2012 at 3:41 AM, Karl Vogel <firstname.lastname@example.org> wrote:
>>> On Fri, 3 Feb 2012 11:49:22 +0800, lina <email@example.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
> 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
> 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 firstname.lastname@example.org
> Archive: 20120206194121.43109BF9C@kev.msw.wpafb.af.mil">http://lists.debian.org/20120206194121.43109BF9C@kev.msw.wpafb.af.mil