On Wed, 26 Jul 2000, David Elliott wrote:
>>   gomeisa[53]:~% /sbin/route -n ; uname -rs
>>   /sbin/route: Command not found.
>>   SunOS 5.6
> Okay, that's odd. Where do they hide the route command

In /usr/sbin. However, it has to be executed by root, due to security
precautions:

  gomeisa[61]:~% /usr/sbin/route -n
  route: socket: Permission denied

>>   taygeta[44]:~% /sbin/route -n ; uname -rs
>>   usage: route [-dnqtv] command [[modifiers] args]
>>   FreeBSD 4.0-RELEASE
> okay, so route -n print I am assuming?

FreeBSD (and also Solaris) do not know print, this seems to be a Linuxism.
They only have add, flush, delete, change, get, and monitor.

  taygeta[136]:~/PROJ/dlv.ben% route -n get 209.167.40.140
     route to: 209.167.40.140
  destination: default
         mask: default
      gateway: 128.130.111.1
    interface: fxp0
        flags: <UP,GATEWAY,DONE,STATIC,PRCLONING>
          :      :

> Can I assume that the grep part should work on any self respecting UNIX ?

Yes, of course.

(The problem usually is not that other Unix systems lack features or
common tools, rather it has been my experience that Linux often added
non-standard features.)

Gerald
-- 
Gerald "Jerry" [EMAIL PROTECTED] http://www.dbai.tuwien.ac.at/~pfeifer/

Reply via email to