# Pull pbs arguments to evaluate as part of queuejob hook

**URL:** <https://community.openpbs.org/t/pull-pbs-arguments-to-evaluate-as-part-of-queuejob-hook/2409>\
**Category:** Users/Site Administrators\
**Created:** [December 18, 2020, 7:17pm UTC](https://community.openpbs.org/t/pull-pbs-arguments-to-evaluate-as-part-of-queuejob-hook/2409 "2020-12-18T19:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilshire](https://avatars.discourse-cdn.com/v4/letter/w/f6c823/32.png) [@wilshire](https://community.openpbs.org/u/wilshire)\
**Post date:** [December 18, 2020, 7:17pm UTC](https://community.openpbs.org/t/pull-pbs-arguments-to-evaluate-as-part-of-queuejob-hook/2409/1 "2020-12-18T19:17:20Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [December 19, 2020, 11:37pm UTC](https://community.openpbs.org/t/pull-pbs-arguments-to-evaluate-as-part-of-queuejob-hook/2409/2 "2020-12-19T23:37:08Z")

</div>

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\>
