vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Any Cron Job tutorials? (https://vborg.vbsupport.ru/showthread.php?t=237640)

TalkVirginia 03-06-2010 09:49 AM

Any Cron Job tutorials?
 
I'm looking for a cron job tutorial as it relates to vbulletin cron jobs. I'd like to set a job to run every Sunday at midnight.

Seven Skins 03-06-2010 01:10 PM

I dont have any tutorials but ... Upload your script to includes/cron folder and setup Schduled Tasks from adminCP.

TalkVirginia 03-06-2010 01:18 PM

Quote:

Originally Posted by Seven Skins (Post 1998459)
I dont have any tutorials but ... Upload your script to includes/cron folder and setup Schduled Tasks from adminCP.

LOL Really??? Is that how you do it??? :eek: Slap my mouth and call me a horndog.. I would have never thought of doing that.. :rolleyes: Actually, I have done that already but I'm not sure I have my job set right.

Seven Skins 03-06-2010 01:35 PM

I should not tell you this, as you most probably already know this too ... look at the "Weekly Digest" cron task and copy it.

TalkVirginia 03-06-2010 01:50 PM

ok Thanks I'll take a look at that.

On a related but side question.. is there anything in the vbulletin cron job scheduler that would cause it to execute a script multiple times during a scheduled run? How would one go about debugging something like this?

Seven Skins 03-06-2010 02:29 PM

If you don't set the hour/minutes then it is executed many times.
Set 3 things .. day of the week, hour and minutes.

TalkVirginia 03-06-2010 02:46 PM

Quote:

Originally Posted by Seven Skins (Post 1998508)
If you don't set the hour/minutes then it is executed many times.
Set 3 things .. day of the week, hour and minutes.

Ok Will give that a shot

Lynne 03-06-2010 03:05 PM

If you need more help in setting it up, you may want to take a screen shot of your setup screen and someone may see what you did wrong.


All times are GMT. The time now is 11:50 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.01207 seconds
  • Memory Usage 1,719KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete