View previous topic :: View next topic |
Author |
Message |
jdelrio
Joined: 02 Oct 2005 Posts: 13
|
Posted: Fri May 02, 2008 9:11 am Post subject: Execute external program by Remote agent |
|
|
Hi,
I'm trying to execute a bat file in another host different from HostMonitor host.
I have an action profile who execute the bat. When I select Hostmonitor as "Execute by" its works fine.
When I select a remote agent and execute it, in the system log appear the msg "02/05/08 11:09:22 Action "Execute external program" executed by RMA "Pxw003" but nothing happen in pxw003.
Hostmonitor version 7.20
RMA version 3.68
The agent in pxw003 has enabled to execute external pograms
Can anybody say me what I doing wrong. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri May 02, 2008 9:22 am Post subject: |
|
|
Quote: | but nothing happen in pxw003 |
What exactly should happen? RMA starts specified application in "invisible" mode, you will not see any window on screen.
Regards
Alex |
|
Back to top |
|
|
jdelrio
Joined: 02 Oct 2005 Posts: 13
|
Posted: Fri May 02, 2008 12:56 pm Post subject: Execute external program by Remote agent |
|
|
Alex:
The process had to execute a bat that writes a file in the same directory where the .bat is located.
I donīt need to see the execution, I need that the bat generate the file (I give Full control access to this directoy for all users) |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Fri May 02, 2008 1:26 pm Post subject: Re: Execute external program by Remote agent |
|
|
jdelrio wrote: | The process had to execute a bat that writes a file in the same directory where the .bat is located. | I would suggest you to use FullPath to files within this .bat file. Also I recommend you to trace output, to figure out what is wrong. For instance, you may "echo" some information into log file after each line in .bat file, e.g.:
Code: | @echo off
echo Script started > C:\temp\some_log.txt
...
your code here
...
echo Some command executed >> C:\temp\some_log.txt
...
your code here
...
echo Script finished >> C:\temp\some_log.txt |
Regards,
Max |
|
Back to top |
|
|
jdelrio
Joined: 02 Oct 2005 Posts: 13
|
Posted: Fri May 02, 2008 5:16 pm Post subject: Execute external program by Remote agent |
|
|
Thanks Max.
This resolved my problem |
|
Back to top |
|
|
|