nc missing option -z

Patrick O'Callaghan pocallaghan at gmail.com
Wed Feb 13 05:36:24 UTC 2013


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 ...

poc



More information about the users mailing list