Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
the hour of vixie-cron
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
primus
Apprentice
Apprentice


Joined: 07 Jun 2003
Posts: 230

PostPosted: Tue Jun 29, 2004 1:19 pm    Post subject: the hour of vixie-cron Reply with quote

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
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Tue Jun 29, 2004 4:53 pm    Post subject: Re: the hour of vixie-cron Reply with quote

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
Code:
man 5 crontab
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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