I'm trying to test something with the shellscript test, but i'm unable to get any output.
I want a vbscript run (not Active Script, cause the WScript object is not available, and the freedom of parameters), when ran form the commandline the script returns
scriptRes:Ok:0 or scriptRes:Bad:n. I tried different Case usings in scriptRes (from scriptres to ScriptRes). Finally I tried a simple bat script to run which only contains:
Code: Select all
@echo on
echo scriptRes:Ok:1
[11:13:27] HostMonitor is going to execute "bat" script ...
[11:13:27] Script started, no results received
The VbScript is outputting like this:
WScript.StdOut.Write and also tried WScript.Echo
I also tried to use the samples but again not getting an result.
I’m Running on Windows 2003 SP1
Hostmonitor is Version: 6.80
I also checked if it could some parameter in the
default for VB:
cmd /c cscript /B /E:VBScript %Script% %Params%
cmd /c /Q cscript /E:VBScript %Script% %Params%
cmd /c cscript /NoBanner /E:VBScript %Script% %Params%
and for bat
cmd /c %Script% %Params%
All cmd's work from the command line, but can't get an response in HostMonitor
What am I doing wrong?
Cheers Olaf