How to use "qstat" and "grep" to list lines containing a range of numbers?
0
votes
2
answers
1165
views
To monitor the job status in clusters,
is used to output lines like this
job-ID prior name user state submit/start at queue slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
146767 2.75000 REMD xxxxxx Rr 03/26/2021 10:58:17 Arya@node-c11b-027.kathleen.uc 160
146811 2.75000 REMD xxxxxx r 03/26/2021 11:37:48 Arya@node-c11b-043.kathleen.uc 160
146862 2.25862 REMD xxxxxx Rq 03/26/2021 06:24:39 160
146911 2.19397 REMD xxxxxx Rq 03/26/2021 11:37:20 160
146768 0.00000 REMD xxxxxx hqw 03/13/2021 14:47:35 160
146769 0.00000 REMD xxxxxx hqw 03/13/2021 14:47:35 160
146770 0.00000 REMD xxxxxx hqw 03/13/2021 14:47:36 160
The first element of each line is the job ID. Is there a way to show the lines for a particular range of jobs, e.g. how to only show the jobs from 146868 to 146927? It seems that
is needed.
Asked by lanselibai
(143 rep)
Mar 26, 2021, 12:00 PM
Last activity: Mar 26, 2021, 03:10 PM
Last activity: Mar 26, 2021, 03:10 PM