Actions in order

Need new test, action, option? Post request here.
Post Reply
Wooltown
Posts: 115
Joined: Wed May 22, 2002 6:00 pm
Location: Sweden

Post by Wooltown »

Hello !

How can I have my actions performed in an order, I need action 1 to create a textfile which action 2 should mail to me, now it seems like both actions are fired simultaneously and therefore I can't get hold af the textfile !


KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If 2 actions have the same value of the "Start when XX consecutive Bad/Good results occur" option, actions will be started in creation order.
So, if you want to create report and then send it by mail, add "Generate reports" action" first and add "Send e-mail" action later.
Please note: if you create text file using some external program and "Execute external program" action, HostMonitor will start external program but it will not wait until program terminates. In this case you can use "Run HMScript" action (instead of "Execute external program" action) with single command "ExecuteProgram <time_to_wait> <command_line>"

Regards
Alex
Wooltown
Posts: 115
Joined: Wed May 22, 2002 6:00 pm
Location: Sweden

Post by Wooltown »

Thank you, it helped my problem, but something is strange about what account is used when running ExternalProgram from a HM-Script ?

I'm logged on with a domain admin account, the same as the service is using, and doing the following commands:

ExternalProgram calls a DOS batch-file containing this:

c:winntsystem32cmd /c dir p:osunattendinstall*.ins /b > c:tempins.txt

c:winntsystem32cmd /c del p:osunattendinstall*.ins

The first line is doing well, but he second is not, if I give Authenticated Users the right to delete in the directory it works fine, but they are not allowed to delete files.

Regards
Sven
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I hope this update http://www.ks-soft.net/download/hm369.zip will fix the problem.

Regards
Alex
Wooltown
Posts: 115
Joined: Wed May 22, 2002 6:00 pm
Location: Sweden

Post by Wooltown »

Hello Alex

It sure did, thank you for your always excellent and fast help, I wish all were as fast as your companý are on helping their customers

Regards
Sven
:grin:
Post Reply