On Tue, Feb 7, 2012 at 3:41 AM, Karl Vogel <vogelke+deb...@pobox.com> wrote: >>> On Fri, 3 Feb 2012 11:49:22 +0800, lina <lina.lastn...@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-w...@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-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/20120206194121.43109b...@kev.msw.wpafb.af.mil > -- 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/CAG9cJm=7v8uug1wrr07s4amgifhrqwqizeb5h6x_oavc+ba...@mail.gmail.com