[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [condor-users] How do you use CONDOR_SCRATCH_DIR in a StandardUniverse job?
- Date: Mon, 19 Jan 2004 11:44:49 -0600 (CST)
- From: Douglas Thain <thain@xxxxxxxxxxx>
- Subject: Re: [condor-users] How do you use CONDOR_SCRATCH_DIR in a StandardUniverse job?
We added CONDOR_SCRATCH_DIR for the sake of vanilla users, not thinking
about the standard universe. Hence, the manual is a little unclear in that
regard. It can be used in your case, but there is a little trick to be
done. Use "local_files" in your submit file to declare that filenames with
a certain root name are local:
local_files = tmpfile.*
Then, in your program, use CONDOR_SCRATCH_DIR and mkstemp using that root:
> scratch = getenv("CONDOR_SCRATCH_DIR");
> fd = mkstemp(template);
At the moment, there is no easy way for your job to manipulate its
submit-file parameters at run time. We are currently developing a facility
for doing so, but it's not quite ready for prime-time yet.
Condor Support Information:
To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
unsubscribe condor-users <your_email_address>