| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Network link monitor for linux |
Hello Pascal! 26 Jan 04 22:00, you wrote to David Drummond: DD>> export result=`ping -c 4 -q ispgate | grep avg | wc -l` DD>> if [ $result != 1 ] DD>> ... PS> Equivalent (or maybe even better, -c 4 does not exit for me when no PS> replies come, it waits forever for 4 replies to emerge): PS> if ! ping -c 4 -w 4 ispgate &> /dev/null; then PS> ... PS> fi PS> ping exits with 0 exit status when replies come in, or with 1 when no PS> replies come. Thanx everybody :) I already wrote somethin similar (while waiting for replies) , I also found that correct usage of lcp-echo-failure & lcp-echo-interval made pppd detect dead links by itself (and then i launch the reconection script from the ip-down script. Best Regards, Viktor (aka BlackDew) --- GoldED+/W32 1.1.4.7* Origin: BlackDew (bdew{at}mail.ru) (icq#15553279) (2:400/567) SEEN-BY: 633/267 270 @PATH: 400/567 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.