querying sge using job_name

Posted by user39212 on Server Fault See other posts from Server Fault or by user39212
Published on 2010-03-30T13:40:51Z Indexed on 2010/03/30 13:43 UTC
Read the original article Hit count: 322

Filed under:

Hello, qstat manual says

-j [job_list]
          Prints either for all pending jobs  or  the  jobs  con-
          tained  in  job_list  various information. The job_list
          can contain job_ids, job_names, or wildcard  expression
          sge_types(1).

i.e. qstat -j job_name should work. But whenver I try i get an error saying

> qstat -j test_20100203_01
ERROR: job-ID should be an integer

Any idea if this should have worked.

I can also use:

qstat | grep test_20100203_01

but the problem is that qstat lists the shortened job name (something like test_2010020 and not test_20100203_01).

Please advise.

© Server Fault or respective owner

Related posts about sge