Anyone have some pointers on pulling out the values that are passed as arguments to the qsub command as part of a hook for a queuejob event. I want to be able to evaluate whether certain options have been passed (ie. -Wblock=true)
I hope this helps:
Terminal-1:
[pbsdata@openpbs ~]$ qsub -l select=1:ncpus=1:mem=1gb -l walltime=00:10:00 -l place=free -Wblock=true -- /bin/sleep 1000
60.openpbs
Terminal-2
[pbsdata@openpbs ~]$ qstat -f 60 | grep Submit_arguments -A1
Submit_arguments = -l select=1:ncpus=1:mem=1gb -l walltime=00:10:00 -l plac
e=free -Wblock=true – /bin/sleep 1000
Note: you can use qstat -fx <in case of finished job(s) job-id>