Mailing List Archives
Public Access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] DAGMan post scripts and ${RETURN}
- Date: Wed, 27 Oct 2004 10:32:07 -0500
- From: "Peter F. Couvares" <pfc@xxxxxxxxxxx>
- Subject: Re: [Condor-users] DAGMan post scripts and ${RETURN}
Kipp Cannon 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...
Kipp,
Just to be clear, DAGMan doesn't set an environment variable named
RETURN (though that's not a bad idea). Instead, DAGMan will pass the
job's return code as an argument to your post script if you've
specified $RETURN as an argument to your script in the DAG
specification file. E.g.:
Job NodeFoo foo.sub
Script Post NodeFoo postscript.sh foo bar $RETURN
Or is that what you're doing already?
Thanks,
-Peter
--
Peter Couvares University of Wisconsin-Madison
Condor Project Research Department of Computer Sciences
pfc@xxxxxxxxxxx 1210 W. Dayton St. Rm #4241
(608) 265-8936 Madison, WI 53706-1685