There is a vmware api which can return the pid and exit code of executed processes. Some how I am getting only the pid but not the exit code(may be due to unsupported guest os).
Generally it returns the out put like this :
name = 'chmod',
pid = 2377,
owner = 'reuben',
cmdLine = '"/bin/chmod" +x /home/reuben/some_script.sh',
startTime = 2014-10-14T07:31:07Z,
endTime = <unset>,
exitCode = <unset>
As you can see I am not getting the exit code. But it works with other supported guest OS.
Note: though it is not returning the exit code but the process is finishing successfully.
So is there any unix command to know the exit code from the pid ?