[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] DAGMan post scripts and ${RETURN}



On Wed, 27 Oct 2004, Alain Roy wrote:

> > > > > The Condor user's manual claims that DAGMan will pass the return 
> > code from
> > > > > the executable in a DAG node to the post script in that node through a
> > > > > variable called ${RETURN}.  Can someone confirm if this claim is 
> > correct?
> > > > > ${RETURN} appears to be unset in the post scripts I'm working with...
> > > > >
> > > >
> > > > What version of Condor/DAGman are you working with?
> > >
> > > Condor 6.6.1, but I can't find the dagman version... probably the
> > > "correct" one for that Condor version.  (Scott:  it's the one on our
> > > cluster downstairs).
> > >
> >
> >Condor folks,
> >
> >Please if you could answer Kipp's question for the version of
> >DAGman that is in 6.6.7, which I will be installing tomorrow.
> 
> $RETURN is in 6.6.7, and it's been in DAGMan since before 6.6.1.
> 
> As Peter said, it's not passed as an environment variable, but it's a 
> variable in the DAGMan file--substitution is done so that it can be given 
> as an argument to the script.

OK, this worked.  The string "$RETURN" on the command line of the post
script in the DAG gets replaced with the return code.  Thanks for the
help.

							-Kipp