Problem running external program
Problem running external program
Hi!
I´m currently evaluating HostMonitor for one single reason: I want to generate a little ascii-textfile if a test failes. For that I wrote me a little vb-script that does the job. I can run this script from windows using command-line, double-click, from Start >> Run menue, etc - no prob.
But I can´t get it doing something if I use it in an HostMonitor action (execute external program). I evan can´t get a simple batch file running. I´´ve tested on Win-XP-Pro and Win2003 Server, same same.
I´ve already searched the forum and found sth. about running HM as service or not, under different user-accounts .... notting.
Anyone out there to lend me a hand ?
kind regards
Rolf
I´m currently evaluating HostMonitor for one single reason: I want to generate a little ascii-textfile if a test failes. For that I wrote me a little vb-script that does the job. I can run this script from windows using command-line, double-click, from Start >> Run menue, etc - no prob.
But I can´t get it doing something if I use it in an HostMonitor action (execute external program). I evan can´t get a simple batch file running. I´´ve tested on Win-XP-Pro and Win2003 Server, same same.
I´ve already searched the forum and found sth. about running HM as service or not, under different user-accounts .... notting.
Anyone out there to lend me a hand ?
kind regards
Rolf
Hi Alex,
Ok, I have found the logs and could produce an error message. It says:
Error: cannot execute command "C:/_ergo/cmd/portal-down-create.vbs". K‹çwc‰çw
Don´t know how to interpret the "K‹çwc‰çw", but the log doesn´t tell me more about what´s really going on.
Is there an option to have a more verbose log?
Thanks and kind regards
Rolf
Ok, I have found the logs and could produce an error message. It says:
Error: cannot execute command "C:/_ergo/cmd/portal-down-create.vbs". K‹çwc‰çw
Don´t know how to interpret the "K‹çwc‰çw", but the log doesn´t tell me more about what´s really going on.
Is there an option to have a more verbose log?
Thanks and kind regards
Rolf
I am afraid it has such influenceApart from that there is a lot of non-standard software running, of course, but nothing that I would expect to influence the OS that much.

Could you start HostMonitor on another system?
If not, we can make some modifications to display error code instead of error description, may be it will work on your system.
On the other hand, who knows what other problems can be expected on such system?
Regards
Alex
Hi Alex,
I installed it on my local workstation (WinXP-Pro, SP2) and got another error in the log:
Error: cannot execute command "c:/_ergo/cmd/create.vbs". £Û�|“#€|
Doesn´t matter if I run locally or as a service with system account
What do I have to do to see the codes instead of the text failures? Edit the ini-file somehow?
kind regards
Rolf
I installed it on my local workstation (WinXP-Pro, SP2) and got another error in the log:
Error: cannot execute command "c:/_ergo/cmd/create.vbs". £Û�|“#€|
Doesn´t matter if I run locally or as a service with system account
What do I have to do to see the codes instead of the text failures? Edit the ini-file somehow?
kind regards
Rolf
I don't know why Windows does not return error description, you should ask Microsoft. But I know what you are doing wrong - c:/_ergo/cmd/create.vbs. VBS is not a program (EXE), its a script. You cannot start scripts like that. Use Windows Script host (cscript.exe) to process scripts. E.g. command line may look like "cmd /c cscript /B /E:VBScript c:\_ergo\cmd\create.vbs"
Regards
Alex
Regards
Alex
Hi Alex,
thanks for your support so far. Think you solved it (shame on me
). I played around with starting the script using cscript before I first posted my problem (there were others in the forum who used it that way). But now I played around a little more with the options for CScript.exe and finally got it working using this:
cscript //H:CScript //nologo c:/_ergo/cmd/create.vbs
at least on my local XP. Will see if it works the same on the Server 2003, but I´m pretty sure.
Thanks a lot for the great support.
Rolf
thanks for your support so far. Think you solved it (shame on me

cscript //H:CScript //nologo c:/_ergo/cmd/create.vbs
at least on my local XP. Will see if it works the same on the Server 2003, but I´m pretty sure.
Thanks a lot for the great support.
Rolf