Skip to main content

Run Command

Runs a specified command

Signature: def runcommand(cinfo)

Parameters:

  • cinfo['command'] - The command that should be run

  • cinfo['commandFile'] - The file the command's output should be stored in

Return Value:

  • ACSuccess 0

  • ACUnknownError 1

Remarks:

The agent.commandOutput should be used to return the command's output from the agent. See the callback section for full details on the callback.