Script error after use *.bat file

Murilo Fujita <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    Hi!
    I want to report the following fact:
    I added in snmpd.conf file this line:
extend .1.3.6.1.4.1.30778.14 /bin/sh "output.bat"

    The output.bat content is

    @echo off
    D:\log\output.exe 3.74


    output.exe is a C binary that receive a value to control the voltage 
(3.74 volts, for example).
    In the command line of DOS:
    C:\> output.exe <value>
    I run the snmpwalk:

snmpwalk -v 1 -c fujitaro fujita 1.3.6.1.4.1.30778.14

and the agent service doesn´t work more when I run snmpwalk.
    The dialog box show:

    An error has occurred in the script on this page.

    Line:  1
    Char   1
    Error: Unspecified error
    Code:  0
    URL:   res://C:\WINDOWS\System32\mmcndmgr.dll/views.htm

      Do you want to continue running scripts on this page?

                          |Yes|    |No|




    Is it normal? Is forbidden to use *.bat with snmp? What is the problem?
    Thanks in advance.
    Fujita

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.