User iionly recently kindly provided me with a five minute cron for the galliMassmaile. It was the only one that would work on my server in the Direct Admin control panel.
I have modified it for Log Rotate by replacing "fiveminite" with "weekly". However, when I check my Croncheck plugin the cron is executing every two minutes.
Cron is:
/usr/bin/wget --spider --output-document=/dev/null http://www.mysite.com/elggfolder/cron/weekly/ >/dev/null 2>&1
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24

Matt Beckett - 0 likes
- jon666@jn6V2

jon666 - 0 likes

- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- iionly@iionly

iionly - 0 likes
- jon666@jn6V2

jon666 - 0 likes
- 2013james@2013james

2013james - 0 likes
- jon666@jn6V2

jon666 - 0 likes
*
*
*
*
5
/usr/bin/wget --spider --output-document=/dev/null http://www.mysite.net/elgg/cron/ >/dev/null 2>&1
0
0
*
*
0
/usr/bin/wget --spider --output-document=/dev/null http://www.mysite.net/elgg/cron/ >/dev/null 2>&1
- Matt Beckett@Beck24

Matt Beckett - 0 likes
- jon666@jn6V2

jon666 - 0 likes
You must log in to post replies.that's the right url, but you need to change the pattern for when it triggers currently you have */5 for five minutes right?
You need to change that to trigger weekly
No Matt, I have nothing entered in the Direct Admin panel timings fields. With the 5 min cron used for the mass mailer, I found that putting */5 caused the cron to not execute at all. I'm assuming all fields should be left as "*" except for Day of Week where I will enter "5" for today (Friday). Is that right?
http://en.wikipedia.org/wiki/Cron ~ have good browse, study for cron cmnd data format/s
If the */5 pattern does not work, you can try the "0,5,10,15" etc. pattern to directly give the minutes for the fiveminute cronjob.
Many thanks. I think I've figured it out. What was confusing Direct Admin was leaving out the "5" (today, Friday) from the Day of Week field. But inserting it confused it equally, causing the cron to fire every few minutes. So I started over. I inserted "5" in the Day of Week field then deleted "weekly" from iionly's command. Croncheck currently says:
16 minutes ago @ Fri, 19 Apr 2013 16:12:01 -0400
So it seems to be working properly now. People have been patient with me on this one but from what is said I wonder how many are thinking of C Panel and are not familiar with Direct Admin panel. If the weekly triggering of Log Rotate continues to work I finally have the answer and can share it with others who may be using Direct Admin. Personally I prefer it to C Panel as it's basic and uncluttered.
It would be worthwhile to follow-up the suggestion from DhrupDeScoop about wikipedia. There is an external reference at the bottom of the Cron page to the CronSandbox - you can try out any combination of time/date values and get back a list of future run-times.
(No) Progress Report:
Well the new weekly cron command did execute once but it's now ten days later and it hasn't fired again. It's:
I went back and studied DhrupDeScoop's table changing the frequency to:
but it didn't fire last night (Sunday) at midnight as directed.
So this continues to be a mystery to me !
You have the wrong urls in there...
should be
just calling /cron won't do anything
This time it worked perfectly. Many thanks' Matt. I had tried it some time ago with the "weekly" but must have got the frequency code wrong. Finally success! Now my Elgg is pretty well perfect.