vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Run a script once a day? (https://vborg.vbsupport.ru/showthread.php?t=33158)

Palmer ofShinra 12-13-2001 12:59 AM

OK... I have a script I want to run exactly once a day, at midnight.

It's fully automated and requires no human intervention.

I just need it to go off EXACTLY once a day, on time, to update several tables.

How the hell would I go about this?

amykhar 12-13-2001 01:57 AM

cron. Who's your web host? If they use cpanel3, there is a form that you can fill out. Accepting the default 0 0 0 * * * will make it run exactly at midnight each day.

Otherwise read the cron man pages is the best advice that I can give.

Amy

Palmer ofShinra 12-13-2001 06:19 AM

We're using Ventures Online... CPanel3

I tried using the crontab on it, with the lynx -dump suggested in the robotmod hack thread... but it didn't seem to work...

Any other ways to do this?

amykhar 12-13-2001 10:16 AM

Same host :D Here's how ya do it. You need the full path to lynx.

Here's mine:

/usr/bin/lynx -dump http://www.eaforums.com/xxx.php


Hope it works for you. :)

Amy

Palmer ofShinra 12-13-2001 08:03 PM

Grr...

This just doesn't want to work...

I set Minutes to 10 minutes past the current time...
Hours to * (which should be "Every hour")

And the command is

/usr/bin/lynx -dump http://130.94.171.148/board/dummyscr...on=dosomething

And nothing.

I can access the correct URL while not logged into the VB and have it execute just fine...

But no matter how many times I try it... nothing happens.

I guess I'll try something else...


All times are GMT. The time now is 03:47 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.01043 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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