in reply to How do I check the status of a remote network

Your script looks good enough, but code-golfing can be fun and a good way to learn. You might want to discover the interfaces rather than hard-coding eth0 and eth1 (what if there is an eth2? or just eth0?).
  • Comment on Re: How do I check the status of a remote network

Replies are listed 'Best First'.
Re^2: How do I check the status of a remote network
by at2marty (Novice) on Sep 15, 2011 at 20:48 UTC

    Very good suggestion. I may research how to go about doing so.