vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Cron job for RSS posts instead of vb script (https://vborg.vbsupport.ru/showthread.php?t=288590)

John Diver 10-03-2012 09:12 AM

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!

John Diver 10-05-2012 12:33 PM

Can anyone help please?

Thanks :)

Brandon Sheley 10-05-2012 01:49 PM

It is by cron isn't it??
I mean a task is what fires off the rss poster if I remember correctly.

kh99 10-05-2012 02:00 PM

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.

BirdOPrey5 10-06-2012 11:13 AM

Maybe a cron job that just visits the forum every hour or so it forces all scheduled tasks to run?

John Diver 11-02-2012 05:25 PM

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?

kh99 11-02-2012 05:40 PM

Quote:

Originally Posted by John Diver (Post 2377872)
Would it work by setting a cron to load the image which would then run the cron?

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.

John Diver 11-03-2012 09:07 PM

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 :)

kh99 11-03-2012 10:30 PM

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.

John Diver 11-04-2012 12:59 AM

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:

cd /home/northwes/public_html/world/cron.php; php /home/northwes/public_html/world/cron.php
My user account is northwes and the directory is world and cron is in the root directory as vB is the root of my site.

Am I getting something wrong here?

Thanks!


All times are GMT. The time now is 10:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01115 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete