Grepular

New Year Bug in At Command

Written 7 years ago by Mike Cardwell

If you’re writing an “at” job today, to run at the beginning of the New Year, make sure you check when “at” states the job is going to run. On my up to date Debian Stable (Lenny) system running “at” version 3.1.9, “tomorrow” is a year out. Same problem exists on my up to date Ubuntu box running “at” version 3.1.11:

mike@alfa:~$ date
Fri Dec 31 12:48:04 GMT **2010**

mike@alfa:~$ echo|at today
warning: commands will be executed using /bin/sh
job 5 at Fri Dec 31 12:48:00 **2010**

mike@alfa:~$ echo|at tomorrow
warning: commands will be executed using /bin/sh
job 6 at Sun Jan  1 12:48:00 **2012**

I wonder if this happens every year?

Looking to hire somebody like me? I'm open to offers of full time employment and small contract jobs. Check out my hiring page. You can follow this Blog using RSS or . To read more, visit my blog index.

Feeling generous?BitcoinMoneroZcashPaypal