Re: Script error after use *.bat file

Murilo Fujita <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    Thanks to Fernández Piñas and Richard Horton for this valuable 
information.
    My system don´t crash know.

    By the way, any suggestion how snmp change the output.bat?
    The case is: in the NMS is running Linux. An user type a value to 
control the voltage (between 0 and 5V) and the agent will run the 
output.exe (again, it works with this syntax: C:\> output.exe <value>
    To join the name of program and the value I created output.bat in 
the agent.
    What can I do to SNMP modify the output.bat in the agent inserting 
the value typed in the NMS?
    The last help was very useful. If you can help again, I will be 
grateful again.

    Fujita


Fernández Piñas escreveu:
> Use "cmd /c" instead of "/bin/sh"
>
>
> -----Mensaje original-----
> De: Richard Horton [mailto:[email protected]] 
> Enviado el: miércoles, 22 de octubre de 2008 14:29
> Para: Murilo Fujita; [email protected]
> Asunto: Re: Script error after use *.bat file
>
> 2008/10/22 Murilo Fujita <[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"
>> I might be barking up the wrong tree but:-
>>     
>
> 1. The OS you are running the output command on is Windows, 2. The OS you are running the agent on is Windows, 3. The OS you are running the walk from is Windows.
>
> /bin/sh is a unix style command for launching the sh shell (just as /bin/bash launches the bash shell).
>
> For windows you'll need something like c:\windows\command.com -c
>
> (I think it is -c to run the specified command and exit - you'll need to look at windows box as I don't have one to hand)
>
>
> --
> Richard Horton

-------------------------------------------------------------------------
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.