Thu Sep 13, 2007 10:24 am
Hi,
I'm using DudeV2.2 and created some execute-functions. The following one for example returns Array-Index 0 (array_element -> Return Code) of the returned values of executing program.exe, parameters passed to the .exe, and where the .exe resides (Path). I think this should work with a .bat anyway...
--> array_element(execute("check_nrpe.exe", concatenate("-n -t 10 -c nt_check_disk_c -H ", device_property("FirstAddress")), "D:\Programme\cygwin"), 0)
And here the syntax description given from Mikrotik:
"executes program, returns array of three elements - return code, standard output, standard error. return code is -1 if error occurs. Only first parameter mandatory. First paramerter - command, second - parameters, third - path, forth - input string to pass to program, fifth - timeout in seconds (default 5.0)"
Hope this is what you need...