On Fri, Jan 16, 2004 at 11:26:11PM -0800, Curtis Vaughan wrote:
> Actually this is the way I tried to get it to continually loop.
> Apparently it does, but it only send out messages as to failures after
> I have killed the process.
>
> #!/bin/bash
> while :; do
> ping='10.0.0.3'
> if ping -c 1 $
Actually this is the way I tried to get it to continually loop.
Apparently it does, but it only send out messages as to failures after
I have killed the process.
#!/bin/bash
while :; do
ping='10.0.0.3'
if ping -c 1 $ping;
then echo "success";
else echo "ping failed for $ping" | mail -s "ping fai
Well, I've been able to edit Bijan's script to do exactly what I want
except. It just runs once. Without putting it in a cron job that
would run every 10 secs, how do I get it to just keep repeating itself,
preferably with a 10 sec delay?
Curtis Vaughan
On 16 Jan, 2004, at 22:38, Bijan Soley
On Fri, Jan 16, 2004 at 10:23:57PM -0800, Curtis Vaughan wrote:
> Has anyone written a script that they're willing to share that pings a
> host and when the ping fails it send out an email message?
#!/bin/sh
while :; do
# Allow for intermittent network failures
ping -c 120 "$1" && LAST="`date
Curtis Vaughan said:
> Has anyone written a script that they're willing to share that pings a
> host and when the ping fails it send out an email message?
>
> Could you share it with me?
Here's a quick one:
#!/bin/bash
if ping -c 1 $1;
then echo "success";
else echo "ping failed for $1" | mail -s
Has anyone written a script that they're willing to share that pings a
host and when the ping fails it send out an email message?
Could you share it with me?
Curtis Vaughan
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Hello,
As my router keep dropping connections to my modem, I need to find out
why it is doing that, still not sure, so have decided to write a ping
script to see if it prevents the connection dropping, but as I haven't
really written a script before, how do I find out how to:
Ping the ne
On Sun, 14 Mar 1999, Bob Bernstein wrote:
> Aha. Thanks for the tip. Stupid me though, it dawned on me, when I got the
> pppupd package, that I'm using a new OpenBSD box for dialling up and that this
> Linux machine is not the place I want to do the 'keepalive' work from.
>
> Any clue as to a scr
On Sun, Mar 14, 1999 at 01:06:00AM +, Bob Bernstein wrote:
> thomas lakofski <[EMAIL PROTECTED]> wrote:
>
> > there's a debian package for it, `pppupd':
>
> Aha. Thanks for the tip. Stupid me though, it dawned on me, when I got the
> pppupd package, that I'm using a new OpenBSD box for dialli
thomas lakofski <[EMAIL PROTECTED]> wrote:
> there's a debian package for it, `pppupd':
Aha. Thanks for the tip. Stupid me though, it dawned on me, when I got the
pppupd package, that I'm using a new OpenBSD box for dialling up and that this
Linux machine is not the place I want to do the 'keepal
rg
> Date: Sat, 13 Mar 1999 21:20:45 +0000 (GMT)
> Subject: ping script for isp autologout
>
> My local mom 'n pop ISP (brainiac) was sold to a large ISP (who shall for the
> moment remain anonymous) that - I *think* - engages in the practice of logging
> users out after a c
My local mom 'n pop ISP (brainiac) was sold to a large ISP (who shall for the
moment remain anonymous) that - I *think* - engages in the practice of logging
users out after a certain period of idle time. (I'm waiting for their
"support" to get back to me on this question.)
I know folks have devise
12 matches
Mail list logo