Current-Users archive

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

Re: cron is now using some mystery timezone for me.



On Mon, 17 May 2010, Christos Zoulas wrote:

In article <alpine.NEB.2.01.1005171040350.1243%chris.i8u.org@localhost>,
Hisashi T Fujinaka  <htodd%twofifty.com@localhost> wrote:
My daily script, which should run at 3:15 PDT, is now running at
10:15PDT, which is 1815GMT, I think.

The crontab format didn't change, did it?

What does you crontab entry look like and what is the global timezone of the
machine?

htodd@amttest:/usr/src/usr.sbin/cron > sudo crontab -l
Password:
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
# CRON_WITHIN=7200
#
#minute hour    mday    month   wday    command
#
*/10    *       *       *       *       /usr/libexec/atrun
#
# rotate log files every hour, if necessary
0       *       *       *       *       /usr/bin/newsyslog
#
# do daily/weekly/monthly maintenance
15      3       *       *       *       /bin/sh /etc/daily 2>&1 | tee 
/var/log/daily.out | sendmail -t
30      4       *       *       6       /bin/sh /etc/weekly 2>&1 | tee 
/var/log/weekly.out | sendmail -t
#30     5       1       *       *       /bin/sh /etc/monthly 2>&1 | tee 
/var/log/monthly.out | sendmail -t
# download vulnerabilities file
4 3 * * * pkg_admin fetch-pkg-vulnerabilities >/dev/null 2>&1

-----

htodd@amttest:/usr/src/usr.sbin/cron > ls -l /etc/localtime
lrwxr-xr-x  1 root  wheel  27 Nov 15  2008 /etc/localtime@ -> 
/usr/share/zoneinfo/PST8PDT

--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Home | Main Index | Thread Index | Old Index