View Full Version : Run a script once a day?
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/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.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.