NetXMS Support Forum

English Support => General Support => Topic started by: mapsy on November 15, 2010, 03:43:29 PM

Title: Execute command on management server (windows) not working
Post by: mapsy on November 15, 2010, 03:43:29 PM
Hi All,

I have setup an alarm. This works. But when I assign an action it wil not fire.

Management server is windows server 2003.
Type Action = Execute command on management server
Command c:\test.bat
Content test.bat = echo test.bat >>test.txt

What I'am doing wrong?

Kind regards,
Maurice Spronkers
Title: Re: Execute command on management server (windows) not working
Post by: Alex Kirhenshtein on November 15, 2010, 08:21:19 PM
Try to use double backslashes in command, single backslash is an escape character.c:\\test.bat
Title: Re: Execute command on management server (windows) not working
Post by: mapsy on November 16, 2010, 11:50:59 AM
No, still not working.

Maurice Spronkers
Title: Re: Execute command on management server (windows) not working
Post by: mapsy on November 16, 2010, 12:01:34 PM
It's working.

Found the file test.txt in c:\NetXMS\var

Was expecting it in the same dir as the executed command.

Maurice Spronkers