Re: Which timezone does the cron use in Debian?
- From: Celejar <celejar@xxxxxxxxx>
- Date: Wed, 25 Mar 2009 01:30:03 -0400
On Sun, 22 Mar 2009 17:15:09 -0500
"Boyd Stephen Smith Jr." <bss@xxxxxxxxxxxxxxxxx> wrote:
In <20090322151837.7d584022.celejar@xxxxxxxxx>, Celejar wrote:
On Sun, 22 Mar 2009 13:18:34 +0000
Nuno Magalhães <nunomagalhaes@xxxxxxxxx> wrote:
But IIUC, timezone is a property of individual user environments, andand the date and time is correct. They're the same as the bios (cmos)I'd assume cron uses system-time, so whichever time 'date' tells
clock shows.
you... Did you check to see you don't have any other cron-jobs alying
around?
is not a systemwide constant;
It can be overridden by an individual user's settings, but it is also
configured system-wide via the /etc/localtime file/symlink.
Thanks; I didn't realize this.
...
I assume, but I'm no expert, that cron also uses the
timezone of the user whose cronjob it's currently running.
I don't think the user's .bash_profile, .profile, etc. are sourced during a
cron run. Your .bashrc might, but normally not. Even global files of this
type like /etc/profile are generally not sourced during the cron run.
This means that the user's overrides are generally not honored, so the
timezone will be what is specified in /etc/localtime. The overrides are all
via environment variables, so you can set them in your crontab if you want.
Thanks for the explanations.
Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- Which timezone does the cron use in Debian?
- From: Patrik Hasibuan
- Re: Which timezone does the cron use in Debian?
- From: Nuno Magalhães
- Re: Which timezone does the cron use in Debian?
- From: Celejar
- Re: Which timezone does the cron use in Debian?
- From: Boyd Stephen Smith Jr.
- Which timezone does the cron use in Debian?
- Prev by Date: Re: Xwindow Failed Suddenly
- Next by Date: Re: Kernel issues: booting from USB storage (Repost)
- Previous by thread: Re: Which timezone does the cron use in Debian?
- Next by thread: Re: Which timezone does the cron use in Debian?
- Index(es):
Relevant Pages
|