Re: ping script

2004-01-17 Thread Bijan Soleymani
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 $

Re: ping script

2004-01-17 Thread Curtis Vaughan
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

Re: ping script

2004-01-17 Thread Curtis Vaughan
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

Re: ping script

2004-01-16 Thread Jan Minar
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

Re: ping script

2004-01-16 Thread Bijan Soleymani
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

ping script

2004-01-16 Thread Curtis Vaughan
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]

ping script howto please

2003-11-26 Thread Piers Kittel
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

Re: Re[2]: ping script for isp autologout

1999-03-14 Thread thomas lakofski
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

Re: ping script for isp autologout

1999-03-14 Thread Mike Merten
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

Re[2]: ping script for isp autologout

1999-03-14 Thread Bob Bernstein
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

Re: ping script for isp autologout

1999-03-13 Thread thomas lakofski
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

ping script for isp autologout

1999-03-13 Thread Bob Bernstein
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