![]() |
|
|
Mod Options |
Execute Scheduled Tasks Via Crontab Details »»
|
|||||||||||
|
Execute Scheduled Tasks Via Crontab
Developer Last Online: Jun 2013
This product will run your scheduled tasks via crontab rather than the current method where Vbulletin uses an image to execute tasks. This can slow down a users experience especially with long running tasks. It also stops all of those cron.php entries in your webserver log.
This product is really only useful for those on *nix (Linux/Unix/Etc) servers. Will not work on Windows based servers. You should have a rudimentary understanding of crontab before installing this hack. For those wondering how this differs from this hack, well, first of all, it works for 3.6.8, but more importantly it actually replaces the method Vbulletin uses to execute scheduled tasks, whereas the other hack only helps it out. Please Click Install!![]() Brought To You By WorldWideCreations.com. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Schedule vB's tasks with a host crontab | Nxs | vBulletin 3.6 Add-ons | 14 | 19 Jun 2009 21:09 |
| Disable Scheduled Task (crontab) in AdminCP without deleting | mtha | vBulletin 3.0 Full Releases | 10 | 08 Oct 2005 14:16 |
|
#16
|
|||
|
|||
|
Not this mod. This mod just calls cron.php just like it normally would except on an exact schedule. It could be you have a scheduled task that is using a lot of CPU though.
__________________
Become a Lampwright today at www.lampwrights.com!
No members have liked this post.
|
|
#17
|
||||
|
||||
|
I have been using this mod for quite some time (clicked install over a year ago) now, and always lived with vBulletin cron tasks running one at a time when the linux cron ran once a minute.
But last week I got ambitious and dug into the bash shell to write this script that runs all the tasks scheduled for any any particular minute, instead of allowing them to sit in 'backlog' until the next minute.
No members have liked this post.
|
||||
|
#18
|
|||
|
|||
|
Why not just use:
/usr/bin/php /home/username/public_html/forum/cron.php >& /dev/null ??? ![]() No members have liked this post.
|
|
#19
|
|||
|
|||
|
Because then you are still displaying the cron.php image..
__________________
Become a Lampwright today at www.lampwrights.com!
No members have liked this post.
|
|
#20
|
|||
|
|||
|
Ah, I understand what you are saying. But I still think it is better to call the /usr/bin/php directly rather than using a .SH script that does the exact same thing.
But of course, the product XML would have to be loaded to remove the $cronimage from displaying. No members have liked this post.
|
|
#21
|
|||
|
|||
|
You need the shell script to change the working directory to where vBulletin lives.
If you call /usr/bin/php directly from cron, your working directory will be $HOME for the account running cron and cron.php won't find any of the includes it needs. No members have liked this post.
|
|
#22
|
||||
|
||||
|
Thanks, this is a very useful mod
It also works on Windows for those of you that have cronw installed. No members have liked this post.
|
|
#23
|
||||
|
||||
|
Does still work with vB 4.
Im Happy! ![]() No members have liked this post.
|
|
#24
|
|||
|
|||
|
Humm.. Why not adding this to crontab..?
(Needs wget, fetch or similar). * * * * * /path/to/wget -O /dev/null "http://myforum.com/cron.php" >> /dev/null 2>&1 The image is still fetched, but not stored or displayed - as wget, when invoked with the "-O" option, outputs the data to /dev/null. It seems to work fine here. ![]() No members have liked this post.
|
|
#25
|
|||
|
|||
|
Any directions on how to use this add-on? Added the .xml file into vBulletin and scheduled the CRON script in my cPanel but nothing is happening.
No members have liked this post.
|
|
#26
|
||||
|
||||
|
anyone tested this with 4.2?
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 04:58.









