Script Help
pfarrar at learningco.com
pfarrar at learningco.com
Thu Sep 2 13:12:25 EDT 1999
Wouldn't step 4 return a harmless error if there was no connection?
Couldnt you simply loop on step 4 until it went through?
while(connect(dyndns.org));
?
______________________________ Reply Separator _________________________________
Subject: Script Help
Author: Raymond Cloutier <Raymond.Cloutier at infomedtrics.com> at InterNet
Date: 9/2/99 12:47 PM
I'm having problems writing a script to kill and restart my web server.
I've got most of the pieces in place but I'm missing one component.
Frequently my provider disconnects me and here's what I must do.
1) dial my provider and obtain an IP address
2) Kill the apache web server,
3) Wait for a connection,
4) Connect to dyndns.org to update my dynamic dns name/ ip,
5) Start the web server.
I've written and/or found scripts to do all but step 3, and can seem to find
a work around other than to have 2 scripts, 1 for steps 1-2, and another for
steps 4 & 5, and do step 3 manually (wait)
Any thought or suggestions on how to pause/wait for a ppp0 connection, then
resume a script.
Thanks
-Ray
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
-------------- next part --------------
Received: from ns.learningco.com ([198.112.0.7]) by mail.learningco.com with
SMTP
(IMA Internet Exchange 3.12) id 00026819; Thu, 2 Sep 1999 13:30:28 -0400
Received: by ns.learningco.com; id NAA05179; Thu, 2 Sep 1999 13:25:51 -0400
(EDT)
Received: from tarnhelm.blu.org(207.31.228.20) by ns.learningco.com via smap
(V4.2)
id xma005148; Thu, 2 Sep 99 13:25:43 -0400
Received: (from majordom at localhost)
by tarnhelm.blu.org (8.8.7/8.8.7) id MAA06225
for discuss-outgoing; Thu, 2 Sep 1999 12:54:56 -0400
Received: from iai-admin.info-arch.com ([199.232.150.132])
by tarnhelm.blu.org (8.8.7/8.8.7) with ESMTP id MAA06222
for <discuss at Blu.Org>; Thu, 2 Sep 1999 12:54:54 -0400
Received: by IAI-ADMIN with Internet Mail Service (5.5.2448.0)
id <3NQQY265>; Thu, 2 Sep 1999 12:47:46 -0400
Message-ID: <1E4248272DF8D111892200A0C99BA0CF240527 at IAI-ADMIN>
From: Raymond Cloutier <Raymond.Cloutier at infomedtrics.com>
To: discuss at Blu.Org
Subject: Script Help
Date: Thu, 2 Sep 1999 12:47:45 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
Sender: owner-discuss at blu.org
Precedence: bulk
More information about the Discuss
mailing list