Run external program then check resulting log file as a sing

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
lajsu
Posts: 1
Joined: Sun Dec 01, 2002 6:00 pm
Location: Laj Su

Post by lajsu »

Hello All-

I'm a brand new user and was wondering what was the best way to execute an external test program, then check for specific text within the logfile that the external program creates. I see that I can execute a program from within HostMonitor, and that I can also check a text file for strings, but how can I do both as a single test?

Thanks in advance!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I see 3 solutions:

1) create another external program to check log file (created by 1st external program) and return ErrorLevel code to HostMonitor.

2) create some script (VBScript, or JScript, etc) that will execute external program and check its log file. Use "Script" test to execute that script

3) create 2 tests. 1st test will execute external program and start simple HMScript with single command "RefreshTest name_of_test_#2" (use "Execute HMScript" action), this command will perform 2nd test. 2nd test that will check log, should have longer time interval than 1st test (to avoid unnecessary execution).

Regards
Alex
Locked