What does an exitcode of null from a script imply?
When using the Script plugin, I usually see an exitcode =-999 if the script cannot be executed (e.g. its not found).
Executing the same Script plugin using the Execute operation and the same arguments as on the Availability check, returns the expected output. But those same arguments executed on the Availability scan, returns the following. Has it timed out?
CLI results: exitcode=[null]; error=[null]; output=<cr><lf>
Al Amyot
This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original.
Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
What does an exitcode of null from a script imply?
Read the Javadocs on the getExitCode() of the ProcessExecutionResults class to see when exit code will be null:
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=blob;f=modules/core/native-...
/** * If the process finished, this is its exit code. Its numeric value has specific meaning that is custom to the * operating system and the program that was executed. * * <p>This will be <code>null</code> if the process was never waited on or if the wait time expired before the * process exited.</p> * * @return process exit code or <code>null</code> if it could not be determined * * @see SystemInfo#executeProcess(ProcessExecution) */ public Integer getExitCode() { return exitCode; }
rhq-users@lists.stg.fedorahosted.org