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

Re: [MacPerl] testing for net connectivity



At 21:27 -0500 2000.11.30, Scott R. Godin wrote:
>How would I program MacPerl to test for whether or not I have a working
>internet connection before performing other tasks .. I'd like it to die more
>gracefully if possible :)
>
>being on a flaky dialup instead of the cool cable/dsl solutions, makes this
>a near necessity if I want to run timed regular scripts.

I'd probably try to use Net::Ping to ping a known host (or maybe a pool of
known hosts).

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org