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

[HTCondor-users] program arguments conditional on filesystem domain?



Is it possible in a submit file to make program arguments conditional on whether or not the job is running in the same filesystem domain from which it was submitted?

For running in the same filesystem domain my submit files typically look like...

executable = /bindir/mycommand
transfer_executable = false
universe = vanilla
should_transfer_files = NO
initialdir = $(outputdir)/$(video)
Arguments = -i $(inputdir)/$(video).mp4 -o .
Queue

where $(outputdir) and $(inputdir) are absolute paths.

For a different filesystem domain they need to look like....

executable = /bindir/mycommand
transfer_executable = false
universe = vanilla
should_transfer_files = YES
initialdir = $(outputdir)/$(video)
transfer_input_files = $(inputdir)/$(video).mp4
Arguments = -i $(video).mp4 -o .
Queue

Is there a way to combine these into one submit file that could run both in the same filesystem domain and outside of it? Something like

executable = /bindir/mycommand
transfer_executable = false
universe = vanilla
should_transfer_files = IN_NEEDED
initialdir = $(outputdir)/$(video)
transfer_input_files = $(inputdir)/$(video).mp4
if (same filesystem domain)
    Arguments = -i $(inputdir)/$(video).mp4 -o .
else
    Arguments = -i $(video).mp4 -o .
Queue

or some other way to handle input files from outside the working directory that doesn't require an extra copy when the job runs in the same filesystem domain?

Thanks

- Jason



--
Jason Ferrara
Jacquette Consulting, Inc.
710 Providence Road
Malvern, PA 19355
jason.ferrara@xxxxxxxxxxxxx