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