On Wed, 26 Jul 2000, David Elliott wrote:
> Easy in bash:
> if /sbin/route -n | grep "^0.0.0.0"
> then
>     echo "Nothin' but 'net"
> else
>     echo "Please connect to the 'net"
> fi

Sorry, not all the world is Linux:

  gomeisa[53]:~% /sbin/route -n ; uname -rs
  /sbin/route: Command not found.
  SunOS 5.6

  taygeta[44]:~% /sbin/route -n ; uname -rs
  usage: route [-dnqtv] command [[modifiers] args]
  FreeBSD 4.0-RELEASE

Gerald
-- 
Gerald "Jerry" [EMAIL PROTECTED] http://www.dbai.tuwien.ac.at/~pfeifer/
Have a look at http://petition.eurolinux.org -- it's not about Linux, BTW!


Reply via email to