bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date bug


From: Eric Blake
Subject: Re: date bug
Date: Sat, 20 Mar 2010 06:18:47 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3

On 03/20/2010 01:40 AM, Jesse Lloyd wrote:
> if I run it from bash and cat /var/www/loger I get 12:29:09 AM
> 
> If I stick that into crontab using crontab -e (*/1 * * * *
> /var/www/test.sh > /dev/null 2>&1)  and cat /var/www/loger after
> crontab has run I get 00:29:09

Crontab uses a different set of environment variables than your login
session.  My guess is that you have $TZ defined differently between the
two execution environments.  Explicitly set TZ in your crontab if you
expect the same results.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]