Hi Bruce.

Bruce Shaw wrote:
This is a wierd bug. It only occurs on one of my machines, a V880. It's
running Solaris 8. It doesn't happen on a Solaris 2.6 machine.


When I run the test, I get:

/usr/local/src/net-snmp-5.1.2.pre3/testing/eval_onescript.sh: kill.exe: not
found

When I look at the code, there's a test for OSTYPE that looks for "msys".
OSTYPE is not defined under Solaris unless you do it yourself (at which
point the problem goes away).

Can you please try the attached patch? For some reason the second 'if [ "x$OSTYPE" = "xmsys" ]; then' check is backwards. It is using kill for msys, and kill.exe for NOT msys, which is wrong.


I have not tested this on MinGW (MSYS) yet, but I suspect it will work. I will also test on Linux.

Alex

What I've done is test for OSTYPE and put a dummy response in if it's empty.
There's likely a more elegant solution but I'm no shell scripter.

See patch at:

http://sourceforge.net/tracker/index.php?func=detail&aid=986937&group_id=126
94&atid=312694

The problem is actually in eval_tools.sh.

--- testing/eval_tools.sh.org   Wed Apr  7 05:13:26 2004
+++ testing/eval_tools.sh       Wed Jul  7 20:41:10 2004
@@ -476,9 +476,9 @@
        if [ $? = 0 ] ; then
            SNMP_SAVE_TMPDIR=yes
             if [ "x$OSTYPE" = "xmsys" ]; then
-              COMMAND="kill -9 $pid"
-            else
               COMMAND="kill.exe $pid"
+            else
+              COMMAND="kill -9 $pid"
             fi
            echo $COMMAND "($pfile)" >> $SNMP_TMPDIR/invoked
            $COMMAND > /dev/null 2>&1

Reply via email to