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

Re: [Condor-users] Path to execute directory in submit file




On Jun 22, 2004, at 5:11 PM, Erik Paulson wrote:

I think your best bet is to use a batch file:


executable = render.bat

and then render.bat (fair warning, I'm not a windows person)

@echo off
echo "Running 3d max..."
c:\3dsmax6\3dsmaxcmd.exe -outputName %CONDOR_SCRATCH_DIR%\output.tif
echo "Done!"


Thanks Erik! That little batch file is perfect.


One thing I noticed, however, was that the environment variable is actually called _CONDOR_SCRATCH_DIR. I don't know where the preceding underscore came from, but it should be trivial to change either the code or the documentation. (I'm using version 6.6.5 on Win2k, fyi) I figured this out by submitting a batch file that just ran the 'set' command to output the environment variables.

-Aaron

--
Aaron Suggs  |  asuggs@xxxxxxxxxxxx
Technology, Architecture, & Service Coordination (TASC)
NSIT Academic Technologies  |  University of Chicago