How to show the commands submitted by `at`?

Karl Auer kauer at biplane.com.au
Wed May 11 01:35:56 UTC 2016


On Tue, 2016-05-10 at 20:04 -0500, Peng Yu wrote:
> Hi, atq only shows that there are job submitted. But how to show the
> actual commands being submitted?

   at -c <jobnumber>

E.g., at -c 9 to see job number 9

To see them all, something like this would work:

x=`atq | cut -f1 | paste` ;  at -c $x

But you won't like it. You could try this to get rid of the
environment:

x=`atq | cut -f1 | paste` ;  at -c $x | grep -v '='

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4







More information about the ubuntu-users mailing list