View previous topic :: View next topic |
Author |
Message |
primus Apprentice
Joined: 07 Jun 2003 Posts: 230
|
Posted: Tue Jun 29, 2004 1:19 pm Post subject: the hour of vixie-cron |
|
|
hey all,
this is somewhat strange, but i was wondering if there is some way to find out when a certain entry in my user crontab is running... reason being: if i make an entry like so,
Code: | 0 2 * * * /path/to/perl/script.pl arg1 arg2 |
this would mean that the script should run every day at 2:00am, correct? well, for some odd reason, it doesnt. however if i make the entry
Code: | 50 * * * * /path/to/perl/script.pl arg1 arg2 |
then it works running at 1:50, 2:50, etc...
so i just wanted to know if there is some other way that vixie gets its timing, because my system clock is set correctly with ntp-client, so i dont know what time vixie-cron is reffering to. unless there could be something else that would make the first "code" not run correctly?
i dont know. this is pretty new to me, but i was hoping vixie-cron just ran off the system clock. thanks for any help.
ps - these are all using 'crontab -e'
hmm... am i just not making sense? i just tried to set a crontab entry to run at '30 8 * * *' and it worked... but! it is 9:30am here! does that seem right?? _________________
$japh=qq/62D112U107N106E28D89U104N109E89 D86U96N102E14D77U87N106E96D12U68N95E98 D102U101N101E/;
map { $i++ while chop; push (@dune,$i); undef $i; } split /[eE]/;
map { print chr ${\(shift(@dune) + $_)}; } split /[DUNE]/,$japh;
|
|
Back to top |
|
|
jdgill0 Veteran
Joined: 25 Mar 2003 Posts: 1366 Location: Lexington, Ky -- USA
|
Posted: Tue Jun 29, 2004 4:53 pm Post subject: Re: the hour of vixie-cron |
|
|
primus wrote: | Code: | 0 2 * * * /path/to/perl/script.pl arg1 arg2 |
this would mean that the script should run every day at 2:00am, correct? well, for some odd reason, it doesnt. |
That is correct, it should run at 2:00 am everyday.
Quote: | however if i make the entry
Code: | 50 * * * * /path/to/perl/script.pl arg1 arg2 |
then it works running at 1:50, 2:50, etc... |
It should run at 1:50, 2:50, etc, as you specified to run every 50th minute of every hour of every day.
Quote: | so i just wanted to know if there is some other way that vixie gets its timing, |
You could add a crontab entry to log the current `date` to a log file to see what cron is seeing,
Code: | 0 2 * * * date >> ~/date.log |
For more information about crontab entries, see
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|