Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2012, 09:12 AM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 10-05-2012, 12:33 PM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help please?

Thanks
Reply With Quote
  #3  
Old 10-05-2012, 01:49 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is by cron isn't it??
I mean a task is what fires off the rss poster if I remember correctly.
Reply With Quote
  #4  
Old 10-05-2012, 02:00 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Brandon Sheley
  #5  
Old 10-06-2012, 11:13 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe a cron job that just visits the forum every hour or so it forces all scheduled tasks to run?
Reply With Quote
  #6  
Old 11-02-2012, 05:25 PM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 11-02-2012, 05:40 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Diver View Post
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.
Reply With Quote
  #8  
Old 11-03-2012, 09:07 PM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 11-03-2012, 10:30 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 11-04-2012, 12:59 AM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:09 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.04119 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete