On 13Feb2013 01:06, Patrick O'Callaghan <pocallag...@gmail.com> wrote:
| On Wed, 2013-02-13 at 14:40 +1100, Cameron Simpson wrote:
| > If I want to know if I have an internet connection I look for a
| > default
| > route in the output of "netstat -an", thus:
| > 
| >   netstat -rn | egrep '\''^(default|0\.0\.0\.0) +[1-9]'\'' >/dev/null
| 
| netstat -an ...

That prints all the existing connections and sockets.
-rn prints the routing table.
-- 
Cameron Simpson <c...@zip.com.au>
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to