I’m fairly new to unix based systems and the whole language, so bare with me.
I’m trying to submit a bunch of jobs at once (like 10). For similar tasks this line worked for me:
find . -type f -name ‘*.’ -print0 | xargs -0 ‘command’
so i tried this:
find . -type f -name ‘*.job’ -print0 | xargs -0 qsub
Is there an intended way to group submissions? I’ve checked the user manual and couldn’t find a solution to my problem.
Thank you for your time.
scott
2
Is this what you are looking for?
find . -type f -name '*.job' -print | xargs -I% qsub %
Example below
[scott@pbsclient oss]$ ls
one.job three.job two.job
[scott@pbsclient oss]$ find . -type f -name '*.job' -print
./one.job
./two.job
./three.job
[scott@pbsclient oss]$ find . -type f -name '*.job' -print | xargs -I% qsub %
6714.pbs
6715.pbs
6716.pbs
[scott@pbsclient oss]$ qstat
Job id Name User Time Use S Queue
---------------- ---------------- ---------------- -------- - -----
6714.pbs one.job scott 0 Q workq
6715.pbs two.job scott 0 Q workq
6716.pbs three.job scott 0 Q workq
[scott@pbsclient oss]$ qstat -f | grep -e "^[[:alnum:]]" -e Submit_arguments
Job Id: 6714.pbs
Submit_arguments = ./one.job
Job Id: 6715.pbs
Submit_arguments = ./two.job
Job Id: 6716.pbs
Submit_arguments = ./three.job
1 Like
Thank you very much. That’s exactly what i’ve looked for!