Hi Rob,
    I looked into it now.  I think the intuitive thing should work.
Roughly:
1.  If a DMTCP command line is invalid, exit code 99 is returned
  ( or value of DMTCP_FAIL_RC if that environment variable exists ).
2.  Otherwise, dmtcp_checkpoint and dmtcp_restart should return
    the exit code of the target application on which they are invoked.

Here's the same information, in more detail.
All three of the commands below should return the same exit code:
 a.out
 dmtcp_checkpoint a.out
 dmtcp_restart ckpt_a.out_*.dmtcp
They return success or non-zero for failure according to what a.out returns.

Separately, if dmtcp_checkpoint, dmtcp_restart, etc., are given
invalid command lines:
  dmtcp_checkpoint no_such_binary
  dmtcp_restart ckpt_NoSuchBinary_*.dmtcp
then you should see an exit status of 99.
This value, 99, is the DMTCP default, but it can be changed by
setting the DMTCP environment variable, DMTCP_FAIL_RC.

If you have a specific example where the above doesn't happen, please
let us know.

Best,
- Gene


On Mon, Aug 19, 2013 at 01:50:13PM -0400, Robert William Leach wrote:
> Hi,
> 
> So I have a general use blcr script that I have added dmtcp support to and 
> it's working quite well except for 1 aspect.  It's designed to automatically 
> re-try any commands that fail for whatever reason when it is re-run.  
> However, it uses the exit status of the command to determine success/failure, 
> and I have not been able to determine a way to obtain the exit status of the 
> processes I run through dmtcp.  Is there any way to gain access to the exit 
> status?
> 
> Thanks,
> Rob
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and 
> AppDynamics. Performance Central is your source for news, insights, 
> analysis and resources for efficient Application Performance Management. 
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Dmtcp-forum mailing list
> Dmtcp-forum@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

Reply via email to