[nSLUG] Time zone calculation

Bill Davidson billdavidson at eastlink.ca
Wed Mar 7 11:35:58 AST 2007


On my system there is a script "/usr/sbin/atrun" which used to be
invoked by cron every minute, and which runs "atd -s", which processes
the "at" queue once and exits.  You could set up similar scripts, each
of which invokes "atd" with a different TZ variable, and, umm, somehow
knows which scripts to run and which not to run.  I guess you could
modify the "atd" source to have different queue directories, so then you
could have in /usr/sbin/atrun:

TZ=Australia/Melbourne /usr/local/sbin/atd-melbourne -s
TZ=Africa/Khartoum /usr/local/sbin/atd-khartoum -s

Not very elegant, I know.  If there was a way to invoke atd with a queue
name that would be better.  Heck, as long as you're modifying atd...

I hope you can get a useful idea from this.

On Wed, 2007-03-07 at 10:39 -0400, Gerald wrote:
> With daylight savings time changes happening this month I begin my
> semi-annual task of trying to keep track of the time change between here
> and three other places in the world. How can I schedule a job using "at"
> to run in Nova Scotia at when it is 5pm local time in Melbourne, Australia?
> I am tired of manually fixing things 4 times a year and getting it wrong
> half the time.
> Good on ya.
Bill Davidson <billdavidson at eastlink.ca>


More information about the nSLUG mailing list