TIP: Click on subject to list as thread! ANSI
echo: tech
to: Viktor Pilpenok
from: Jasen Betts
date: 2004-01-22 22:05:36
subject: Network link monitor for linux

Hi Viktor.

21-Jan-04 22:14:48, Viktor Pilpenok wrote to All


 VP> Hello everybody.

 VP> Is there some program for linux that can monitor a network link
 VP> (preferably by both checking the link status and pingin some
 VP> preset adresses) and run some script if the link seems down

such could be written in a few lines of bash script etc...

ifconfig can give a report on the link status

fgrep or wc may be able to make sense of that report

ping can ping,

sleep will probably be a good addition to the script so that it doesn't
check hundereds of times every second and waste processor power...

 -=> Bye <=-

---
* Origin: Bad karma, yea Way bad karma.. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/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™.