On the system I'm using I often need to cancel jobs I run. I can check my jobs like this:
$ showq|grep jquick
2001744 jquick Running 120 00:08:26 Mon Apr 11 11:06:02
2002020 jquick Running 120 00:22:04 Mon Apr 11 11:19:40
2003328 jquick Running 240 1:43:34 Mon Apr 11 12:41:10
2006300 jquick Running 120 4:59:16 Mon Apr 11 15:56:52
2006312 jquick Running 120 4:59:16 Mon Apr 11 15:56:52
What I do now is cancel each job ID manually: $ canceljob 2001744 2002020 2003328 2006300 2006312
.
How can I filter this output to directly pipe the job IDs to canceljob
?
qselect -u jquick
give you output that's easier to use?