I would like to submit qsub jobs on the fly without creating discrete job files. So, let's say I have a python script called "get_time.py" that simply reports the time. Instead of making a submission script like this:
cat>job.sub<<eof
#PBS -l walltime=1:00:00
cd $PBS_O_WORKDIR
get_time.py
eof
...and then submitting the job: qsub job.sub
I would like to be able to bypass the file creation step, and I'd image the construct would be something like this:
qsub -d . -e get_time.py
where -e
is my imaginary parameter that tells qsub that the following is code to be sent to the scheduler, instead of using a discrete submission file.
Am I crazy? It seems like there should already be a simple solution for this, but I couldn't find it anywhere. Thanks for any suggestions!