[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Checking if the network is up

  Luis> Is there any way of checking whether the network is responding so
  Luis> that I only run popclient when it is?

Here's my crontab entry. Every 5 minutes, fping tests whether we can connect
to the pop hosts. In case we are, popclient is called with the account
password on rosebud being stored in ~/.rosebud.

*/5 * * * *     fping -q rosebud && popclient -s -3 -P ~/.rosebud rosebud 

Dirk Eddelb"uttel                              http://qed.econ.queensu.ca/~edd

Reply to: