From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15704 invoked from network); 27 Mar 1999 16:39:09 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 27 Mar 1999 16:39:09 -0000 Received: from smtp4.erols.com (smtp4.erols.com [207.172.3.237]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA03791 for ; Sat, 27 Mar 1999 11:24:29 -0500 Received: from erols.com (207-172-53-47.s47.tnt4.brd.va.dialup.rcn.com [207.172.53.47]) by smtp4.erols.com (8.8.8/smtp-v1) with ESMTP id LAA23079 for ; Sat, 27 Mar 1999 11:24:27 -0500 (EST) Sender: lingenfr@erols.com Message-ID: <36FD06C1.EA0DE584@erols.com> Date: Sat, 27 Mar 1999 11:26:41 -0500 From: Rusty Lingenfelter Reply-To: lingenfr@erols.com X-Mailer: Mozilla 4.06C-Caldera [en] (X11; I; Linux 2.0.35 i586) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: scripts and the 'at' command References: <5518FE2C95E6D111B1A500104B72113B0301364E@alfexc8.alf.dec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Bob Segrest wrote: > Greetings, > > 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. > > The good news is that the script seems to work. The bad news is that every > time 'at' executes the script it generates a mail message indicating > "warning: command will be executed using /bin/sh". The first line of my > script is the standard "#!/bin/sh" and I haven't been able to figure out why > this message continues to pop up. As any output from the script (including > this warning) will cause a mail message to be generated and this could add > up to an excessive number of messages very quickly, I need to fix this > before I can use the script. > > Can anyone suggest... > > what I might be doing (or not doing) wrong in my script ??? > or > how I might suppress mail messages ??? > > Bob Segrest > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com Bob, Your script sounds interesting. I am going to use a Linux box (either my Multia or my Sparc) as a gateway to my ISP. I will be using a 56K modem, so I was thinking about how I would allow the others on the LAN to light up PPP remotely (very easily since it is my wife and kids). It sounds like a script like yours would be good, then they would not have to holler up the stairs to see if I was already on. When you have a minute, I would appreciate some insight into how you are using it. Thanks. Rusty