Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How do I check the status of a remote networkby onelesd (Pilgrim) |
on Sep 14, 2011 at 23:37 UTC ( [id://926027]=note: print w/replies, xml ) | Need Help?? |
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?).
In Section
Seekers of Perl Wisdom
|
|