Hi, how about:
#!/bin/sh if ! ping -c 3 known_address_which_is_in_etc_hosts | grep -q "round-trip" then do_your_stuff fi We use this to check our leased line every 5 mins. Maarten _______________________________________________________________________ | Maarten Boekhold, Faculty of Electrical Engineering TU Delft, NL | | [EMAIL PROTECTED] [EMAIL PROTECTED] | | Take life as a party! | -----------------------------------------------------------------------