Sample Header Ad - 728x90

How do I check if a job is running on cluster using job name (CentOS)

1 vote
2 answers
6914 views
I am running a bash script to submit multiple jobs. The submission of a job only happens if such job is not already running. I want to use an if statement inside my bash script to simply check if "job123" is already running or in the queue. I have tried different options with qstat and qstatus but I can't seem to check by job name. How can this information be retrieved? Also these outputs are just strings, I also did not have any luck using grep but I think there must be a specific command.
Asked by Herman Toothrot (353 rep)
Aug 1, 2016, 03:00 PM
Last activity: Aug 2, 2016, 10:56 AM