Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

cronjobs execute at the wrong time

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
gtbX
Tux's lil' helper
Tux's lil' helper
Posts: 131
Joined: Sat Oct 11, 2003 12:27 am

cronjobs execute at the wrong time

  • Quote

Post by gtbX » Mon May 29, 2006 6:24 am

I've got a fileserver set up for a small LAN, which I am using to host a local portage tree. I've set up a cronjob to update the tree bi-weekly as so:

Code: Select all

# crontab -l
30      13      *       *       wed,sat emerge sync --quiet >> /root/sync.log 2>&1
However, instead of executing at 1:30 pm, it runs anywhere from 12:30-2:00 am (from looking at the file modification times). Ok so its not catastrophic, but it is annoying.

Before you ask, the clock is set to the right time, and the timezone is set correctly:

Code: Select all

# ls -l /etc/localtime
lrwxrwxrwx 1 root root 36 May  6 08:38 /etc/localtime -> /usr/share/zoneinfo/America/New_York
I've tried both vixie-cron and dcron, and both do the same thing.
Top
stratovarius
n00b
n00b
Posts: 2
Joined: Mon May 29, 2006 3:32 pm

  • Quote

Post by stratovarius » Mon May 29, 2006 3:42 pm

For further diagnosis, try something like:

Code: Select all

00    *      *       *       /usr/bin/date >> /tmp/times.log
and watch /tmp/times.log over a couple of days.
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Mon May 29, 2006 4:02 pm

Code: Select all

00    *      *       *       /usr/bin/date >> /tmp/times.log
Maybe I am wrong and maybe I have just fcron instead of those 2 mentioned, but I would have one more star ("*") :)

I have 5 fields..:

Code: Select all

        1. Minute [0,59]
        2. Hour [0,23]
        3. Day of the month [1,31]
        4. Month of the year [1,12]
        5. Day of the week ([0,6] with 0=Sunday)
M3ntos
Top
gtbX
Tux's lil' helper
Tux's lil' helper
Posts: 131
Joined: Sat Oct 11, 2003 12:27 am

  • Quote

Post by gtbX » Mon May 29, 2006 4:12 pm

/me slaps forehead

It would help if i had looked more closely at the time. The clock was exactly 12 hours off, and i forgot that date returns times in 24hour format. :roll:
Top
Post Reply

4 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic