OSSP CVS Repository

ossp - ossp-pkg/snmpdx/snmpdx.sh
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/snmpdx/snmpdx.sh
#!/bin/sh
openpkgdir=/cw
me="$0"
case "$me" in
    /*  ) ;;
    */* ) me="`pwd`/$me" ;;
    *   )
        for p in `echo $PATH | sed -e 's/:/ /g'`; do
            if [ -x "$p/$me" ]; then
                me="$p/$me"
                break
            fi
        done
        ;;
esac
rootdir=`echo $me | sed -e 's;/[^/]*$;;' | sed -e 's;//*;/;g'`
$openpkgdir/bin/perl $rootdir/snmpdx \
    -M $rootdir/snmpdx.mib:$openpkgdir/share/snmp/mibs \
    -P $rootdir/snmpdx.d \
    -l /tmp/snmpdx.log

CVSTrac 2.0.1