View previous topic :: View next topic |
Author |
Message |
Wooltown
Joined: 22 May 2002 Posts: 115 Location: Sweden
|
Posted: Mon Mar 17, 2003 7:05 am Post subject: |
|
|
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 !
|
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Mar 17, 2003 2:06 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Wooltown
Joined: 22 May 2002 Posts: 115 Location: Sweden
|
Posted: Tue Mar 18, 2003 2:30 am Post subject: |
|
|
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
|
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
|
Back to top |
|
|
Wooltown
Joined: 22 May 2002 Posts: 115 Location: Sweden
|
Posted: Wed Mar 19, 2003 1:33 am Post subject: |
|
|
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
|
|
Back to top |
|
|
|