View Single Post
Old 11-13-2005, 10:45 AM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Maybe use perl and do something like
Code:
#!/usr/bin/perl 
open(PING, "ping -i 300 |");
while(<PING>) {
    if(m/"No route to host"/) {
        system("your_channel_closing script");
        system("your_channel_openning_script");
    }
}
If closing and rebonding the chanel takes more than five minutes you're going to get a false positive from the next ping response though, so be careful.
__________________
Stop intellectual property from infringing on me

Last edited by teknomage1; 11-13-2005 at 11:21 AM.
teknomage1 is offline   Reply With Quote