Possibly a simple solution I misplaced.
How can I get the output of
atq
sorted chronologically, so I can easily see who's due to run next? The man
page for sort
doesn't have anything built-in to recognize timestamps like the following:
atq
1264 Sat Mar 24 15:03:00 2012 a master
1445 Sat Mar 24 20:28:00 2012 a master
1548 Sun Mar 25 15:09:00 2012 a master
1193 Sat Mar 24 11:03:00 2012 a master
1359 Sat Mar 24 17:13:00 2012 a master
1726 Mon Mar 26 21:24:00 2012 a master
1736 Mon Mar 26 22:04:00 2012 a master
1748 Mon Mar 26 22:46:00 2012 a master
1704 Mon Mar 26 20:19:00 2012 a master
1288 Sat Mar 24 15:38:00 2012 a master
1532 Sun Mar 25 11:53:00 2012 a master
atq |sort
wouldn't work either at the job id's jump around.
Asked by Marcos
(2353 rep)
Mar 23, 2012, 11:05 AM
Last activity: Nov 3, 2023, 04:26 PM
Last activity: Nov 3, 2023, 04:26 PM