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

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: ping script for isp autologout

1999-03-13 Thread thomas lakofski
there's a debian package for it, `pppupd': pppupd - Keeps a ppp connection alive PPPupd, is a simple daemon which maintains a dialup PPP connection. PPPupd is able to: + Execute a redial script, should the connection drop. + Send out periodic pings to keep a connection up, which mi