The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Cron job for RSS posts instead of vb script
Hey
I want to run RSS posts by cron instead of the default RSS poster, has anyone done this? Thanks! |
#2
|
|||
|
|||
Can anyone help please?
Thanks |
#3
|
||||
|
||||
It is by cron isn't it??
I mean a task is what fires off the rss poster if I remember correctly. |
#4
|
|||
|
|||
I think he's probably asking for a way to run it as an operating system cron job instead of the way vb does it (which is driven by users visiting). It was discussed a bit in this thread: www.vbulletin.org/forum/showthread.php?t=279649 but I'm not sure if that person found a solution or not.
|
Благодарность от: | ||
Brandon Sheley |
#5
|
||||
|
||||
Maybe a cron job that just visits the forum every hour or so it forces all scheduled tasks to run?
|
#6
|
|||
|
|||
Sorry for the late reply!
Doing that would work Joe but I think vB only runs the cron when an actual user visits, maybe when an image is loaded (I think). Would it work by setting a cron to load the image which would then run the cron? |
#7
|
|||
|
|||
Seems like it should. But since there isn't any way to specify that you want it to run the RSS task, you'd have to call it multiple times to make sure all the cron tasks are executed, and I don't think there's any way to tell for sure when they are.
|
#8
|
|||
|
|||
Hmmm...I don't know what I can do really..I am missing a lot of posts because I have to do it manually
Has no-one else done this successfully before? Thanks kh99 |
#9
|
|||
|
|||
Well, there's this thread you might want to read: https://www.vbulletin.com/forum/show...ron-VBIV-13733 . In post 6 Wayne posts a command line you can use in a cron job, and he mentioned that if you just set it to run every 30 seconds then it should take care of the problem of running it multiple times (because it doesn't do anything if there's nothing to do, so apparently it doesn't matter much if it's run too often). Also if you do that you could remove the cron image from your footer.
Anyway, later in that thread Wayne talks about a way to specify the specific task you want to run, if you want to go that route. |
#10
|
|||
|
|||
I think I read something that running the cron file doesn't run the rssposter though?
I could be wrong but I thought I seen that somewhere. It is just the RSS poster that I want to run, any way to do it automatically without having to visit the site / run manually would be great Thanks again --------------- Added [DATE]1352054925[/DATE] at [TIME]1352054925[/TIME] --------------- I tried what Wayne posted but it isn't posting / updating the feeds. I set it to every minute, then every 4th (Incase the server did have a problem with running each minute, althought I doubt it) Still nothing posted. I tried manually and it worked no problem. Here is my cron job (Using cPanel) Quote:
Am I getting something wrong here? Thanks! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|