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

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



Hi Aaron,

Your submit file should probably look like this -

--------------------------------------------------
#
# Condor Job Submission file
#
universe = vanilla

# update the path as required -
environment = path=c:\3dsmax6;c:\windows;c:\windows\system32

# to make sure it is executed on Windows box 
#
Requirements = ((OpSys == "WINNT50") || (OpSys == "WINNT51") || (OpSys ==
"WINNT52")) && (Arch == "INTEL")

should_transfer_files = Yes
transfer_files = always
when_to_transfer_output = on_exit
copy_to_spool = false
# this one is imprtant in your case - you have the executable on the remote
machine, right? -
transfer_executable = False 

Executable      = c:\3dsmax6\3dsmaxcmd.exe
Log            = log.txt
Output        = out.txt
Error           = err.txt

transfer_input_files = input.max

Arguments       = -outputName output.tif   -inputName input.max

Queue

-------------------------------------------- end submission
---------------------------

It does not matter what is the name of the SCRATCH_DIR since all input and
output files
will be saved there. So the program should be able to take at least two
arguments with parameters
- input and output, as you put it.

Look at http://www.cs.wisc.edu/condor/manual/v6.6/condor_submit.html - quite
useful reference material
for submit options :-)

Hope it will work for you,
cheers,

Andrey

> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx 
> [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Aaron Suggs
> Sent: Tuesday, June 22, 2004 11:02 PM
> To: condor-users@xxxxxxxxxxx
> Subject: [Condor-users] Path to execute directory in submit file
> 
> Hi,
> 
> I'm trying to use Condor on Windows machines without a shared file 
> system. For my particular application, the input file is passed as an 
> argument to the executable.
> 
> Since the input file is transferred to a temporary scratch 
> directory, I 
> don't know the path to pass it to the executable.
> 
> In my submit file, I've tried using $ENV(CONDOR_SCRATCH_DIR) and 
> $$ENV(CONDOR_SCRATCH_DIR) note the second '$'. But both of 
> these yield 
> the error message:
> 
> Submitting job(s)ERROR "Can't find CONDOR_SCRATCH_DIR in 
> environment!" 
> at line 3
> 92 in file ..\src\condor_c++_util\config.C
> 
> Could someone please tell me what am I doing wrong?
> 
> Is this the wrong way to transfer files?
> 
> FYI, I'm trying to pass a scene file, input.max, to 3D Studio Max, 
> which will produce an output0001.tif file for each frame in 
> the scene. 
> Here's my submit file:
> 
> universe        = vanilla
> copy_to_spool = false
> 
> Executable      = c:\3dsmax6\3dsmaxcmd.exe
> Log             = log.txt
> Output          = out.txt
> Error           = err.txt
> 
> transfer_input_files = input.max
> 
> Arguments       = -outputName $ENV(CONDOR_SCRATCH_DIR)\output.tif 
> $ENV(CONDOR_SCRATCH_DIR)\input.max
> Queue
> 
> Is there another way I should be passing the input/output files? I 
> don't think I can just say "input = input.max", since the 
> program isn't 
> using the standard input.
> 
> Thanks,
> Aaron
> 
> --
> Aaron Suggs  |  asuggs@xxxxxxxxxxxx
> Technology, Architecture, & Service Coordination (TASC)
> NSIT Academic Technologies  |  University of Chicago
> 
> _______________________________________________
> Condor-users mailing list
> Condor-users@xxxxxxxxxxx
> http://lists.cs.wisc.edu/mailman/listinfo/condor-users
>