View Full Version : Run a script once a day?
Palmer ofShinra
13 Dec 2001, 02:59
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
13 Dec 2001, 03:57
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
13 Dec 2001, 08:19
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
13 Dec 2001, 12:16
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
13 Dec 2001, 22:03
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/dummyscript.php?action=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...
vBulletin® v3.6.12, Copyright ©2000-2008, Jelsoft Enterprises Ltd.