From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12374 invoked from network); 28 Mar 1999 18:41:31 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 28 Mar 1999 18:41:31 -0000 Received: from s006.local.net (root@local.net [205.136.38.6]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA27050 for ; Sun, 28 Mar 1999 13:26:21 -0500 Received: from eve.local.net ([205.136.38.242]) by s006.local.net (8.8.5/8.8.5) with ESMTP id KAA25717 for ; Sun, 28 Mar 1999 10:24:49 -0800 Received: from gracie (gracie.tereknor.com [192.168.0.1]) by eve.local.net (8.9.1/8.9.1) with SMTP id KAA05449 for ; Sun, 28 Mar 1999 10:23:25 -0800 (PST) Message-ID: <006001be7949$2c676660$0100a8c0@gracie.tereknor.com> Reply-To: "James Bremer" From: "James Bremer" To: Subject: Re: scripts and the 'at' command Date: Sun, 28 Mar 1999 10:31:18 -0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_005D_01BE7906.1DF7DB20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3155.0 X-Mimeole: Produced By Microsoft MimeOLE V4.72.3155.0 This is a multi-part message in MIME format. ------=_NextPart_000_005D_01BE7906.1DF7DB20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > I have written a short simple script that checks to see if my ppp > link is up and if is not, spawns my dialer script. The last line of > the script uses the 'at' command to run the script a few minutes > later. I wrote a background shell script for my Sun that checks 'ifconfig -a' for the presence of ppp every five minutes or so, and if it's not there, restarts it. The scripting is based on the file locations of the ppp freeware, so adjust for linux accordingly. Side note - I'm not sure how your copy of 'wc' might behave. When I ported this from SunOS to Solaris, I noticed that 'wc -l' in SunOS will report a line if there is a null line or a character, whereas in Solaris 'wc -l' will only report a line if there is an actual character on that line. Again, adjust accordingly. It works fine for me... James Bremer tereknor@tereknor.com ------=_NextPart_000_005D_01BE7906.1DF7DB20 Content-Type: application/octet-stream; name="pppcheck" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pppcheck" IyEvYmluL3NoCgpQUFBESVI9L2V0Yy9wcHAKTE9DS0RFVj1wcHAwLnBpZAoKeD0xCndoaWxlIFsg eCA+IDAgXTsgZG8KCgpgaWZjb25maWcgLWEgfCBncmVwIHBwcCB8IGN1dCAtZiAxIC1kIDogPiAv dG1wL291dGAKaWYgWyBgY2F0IC90bXAvb3V0IHwgd2MgLWxgID0gIjEiIF07IHRoZW4KCXNsZWVw IDMwMAplbHNlCQoKaWYgWyAtZiAvdXNyL2xvY2FsL2Jpbi9wcHBkIF07IHRoZW4KICAgICAgICBp ZiBbIC1mICRQUFBESVIvJExPQ0tERVYgXTsgdGhlbgogICAgICAgICAgICAgICAgcm0gLWYgJFBQ UERJUi8kTE9DS0RFVgogICAgICAgIGZpCi91c3IvbG9jYWwvYmluL3BwcGQgLWQgY2FsbCBsb2Nh bAogICAgICAgIGlmIFsgJD8gPSAiMCIgXTsgdGhlbgogICAgICAgICAgICAgICAgZWNobyAiUFBQ IFN0YXJ0ZWQuLi4iCiAgICAgICAgICAgICAgICAkUFBQRElSL2lwLXVwCiAgICAgICAgZWxzZQog ICAgICAgICAgICAgICAgZWNobyAiU3RhcnR1cCBmYWlsZWQsIHNlZSBzeXNsb2cgZm9yIGRldGFp bHMiCiAgICAgICAgZmkKZWxzZQogICAgICAgIGVjaG8gInBwcGQgbm90IGZvdW5kLCBleGl0aW5n Li4uIgogICAgICAgIGV4aXQgMQpmaQoKCWVjaG8gYGRhdGVgID4gL3RtcC9wcHBjcmFzaApmaQoK ZG9uZQo= ------=_NextPart_000_005D_01BE7906.1DF7DB20--