Returns a DiscoveredCommandResult node containing the result of running the specified command.Retrieves the specified file.
The following code examples shows
discovery.runcommand being used to determine the publisher of a Java virtual machine. This comes from the TKU Java VM pattern.
Possible post-processing required on UNIX/Linux hosts
When a pattern executes a command on a UNIX/Linux host, the result returned can contain control characters used to display colours and other formatting. The pattern should not rely on being able to use the result without some additional processing such as regular expression matching and extraction.