[ale] rdate problem

Jim Philips jcphil at mindspring.com
Sat May 3 12:06:50 EDT 2003


On Saturday 03 May 2003 03:52 pm, Danny Cox wrote:
> On Sat, 2003-05-03 at 07:47, Jim Philips wrote:
> > But when I ran rdate manually, using the same server, it always set my
> > clock to the right time. Only when I started running it by cron did I
> > have this problem.
>
> 	That's because you have TZ set in you environment, and cron doesn't!
> Try setting TZ from the cron script (if it has one, otherwise you'll
> have to inline it in the cron command line).

This is really irritating. If I check /etc/localtime, I get this:

localtime: symbolic link to /usr/share/zoneinfo/America/New_York

But if I run rdate again from the command line, it still bumps me ahead four 
hours. However, if I just run date at the command line, it shows the correct 
EDT time.

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list