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
signature.asc Description: OpenPGP digital signature