Package: at Version: 3.1.10.2 Severity: wishlist Tags: patch atq uses this date format: % atq 8 Sun Mar 6 20:55:00 2011 a bmh 5 Sun Feb 13 20:55:00 2011 a bmh 14 Mon Feb 7 18:50:00 2011 a bmh 4 Sun Feb 6 20:55:00 2011 a bmh 7 Sun Feb 27 20:55:00 2011 a bmh 9 Sun Mar 13 20:55:00 2011 a bmh 6 Sun Feb 20 20:55:00 2011 a bmh
The POSIX date format is very difficult to sort to see the order in which the jobs will run. The old format can be sorted by date: % atq | sort +1 4 2011-02-06 20:55:00 a bmh 14 2011-02-07 18:50:00 a bmh 5 2011-02-13 20:55:00 a bmh 6 2011-02-20 20:55:00 a bmh 7 2011-02-27 20:55:00 a bmh 8 2011-03-06 20:55:00 a bmh 9 2011-03-13 20:55:00 a bmh The simple/ugly fix is to replace the time format at line 94 of at.c #define TIMEFORMAT_POSIX "%Y-%m-%d %T" though a better solution would be to have a command line option for either the format, or to output in execution time order. -- System Information: Debian Release: 5.0.7 APT prefers proposed-updates APT policy: (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.37.bmh01 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages at depends on: ii exim4 4.69-9+lenny1 metapackage to ease Exim MTA (v4) ii exim4-daemon-light [mail- 4.69-9+lenny1 lightweight Exim MTA (v4) daemon ii libc6 2.7-18lenny7 GNU C Library: Shared libraries ii libpam0g 1.0.1-5+lenny1 Pluggable Authentication Modules l ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip at recommends no packages. at suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

