Products | Versions |
---|---|
TIBCO Hawk | - |
Not Applicable | - |
Resolution:
When you call an executable using one of the execute methods of the Custom microagent, you cannot use redirection (|), multiple command (;) or append characters (> and >>). You can create a separate script that includes a command with these characters, then call that script from the microagent method.
This is mentioned in the Hawk document -> Administrator's Guide -> Chapter 9 Performing Common Monitoring Tasks : Monitoring with Custom Scripts -> Tips on Monitoring Custom Scripts.
For example, if you execute the command: "ls -l | wc -l" from the Custom:executeForNumber directly. You will receive an error message:
MicroAgent returned error.