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

Reply
 
Thread Tools Display Modes
  #11  
Old 11-04-2012, 08:28 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's posted in that thread is a little confusing, but the first "cd" part is supposed to be a path to a directory. So maybe try this:

Code:
cd /home/northwes/public_html/world/.; php /home/northwes/public_html/world/cron.php

Also that assumes that the "php" program will be in the default path. Do you have any command line access? You might try logging in and entering the command in a shell and see if it runs (maybe log in as the user that cron runs as, if you can determine that).
Reply With Quote
  #12  
Old 11-05-2012, 02:07 AM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
What's posted in that thread is a little confusing, but the first "cd" part is supposed to be a path to a directory. So maybe try this:

Code:
cd /home/northwes/public_html/world/.; php /home/northwes/public_html/world/cron.php

Also that assumes that the "php" program will be in the default path. Do you have any command line access? You might try logging in and entering the command in a shell and see if it runs (maybe log in as the user that cron runs as, if you can determine that).
Thanks again for the reply.

I tried that but unfortunately it doesn't work and I am just using a shared account so no command access.
Reply With Quote
  #13  
Old 11-05-2012, 02:57 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, well, hopefully someone else will now why.

Is there any way you could ask your host what the right command would be (to run a php script through cron)? I suspect that the first "cd" part is correct, but it could be that "php" doesn't work unless you explicitly use the path to the php command.

Another thing you might try is "curl" followed by the url (not the file path) of your cron.php file.
Reply With Quote
  #14  
Old 11-05-2012, 09:42 PM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Kevin,

Would that be like this:

Quote:
cd /home/northwes/public_html/world/.; curl www.mysite.com/cron.php
Thanks again for helping Kevin
Reply With Quote
  #15  
Old 11-05-2012, 10:44 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need the cd part, so just:
Code:
curl www.mysite.com/cron.php

Unfortunately I don't have a linux system where I can try a cron job like that, so I'm just guessing. There could be a path problem trying to use "curl", I don't know.
Reply With Quote
  #16  
Old 11-10-2012, 02:36 PM
John Diver John Diver is offline
 
Join Date: Nov 2003
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Kevin!

This seems to be working, but I think it can cause some problems.

What happens if the feeds are being fetched by Rssposter running on the cron while it is already doing the same task?

I.e. just for example, cron is set to run every minute (Because curl /cron.php would only run 1 task at a time, then until for another minute to run the next scheduled task) the RSSposter could be at the bottom of the list, take 5 minutes to run and maybe by the time the cron comes back to the rssposter.php it is still running.

Would that effect it?

Thanks again Kevin!
Reply With Quote
  #17  
Old 11-10-2012, 03:07 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think if you set the cronjob to run often enough, you could remove the cron.php image from your footer, then it shouldn't be a problem. But even if you don't it should be OK because it's no different than 2 users loading cron.php at around the same time. I think the scripts are written to handle that.
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 03:03 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.04299 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_code
  • (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
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete