GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need help with chron on cpanel (https://gfy.com/showthread.php?t=757384)

ClevelandSlim 08-04-2007 03:10 AM

Need help with chron on cpanel
 
I have a script in my cgi bin. Of course, in order to get into the admin panel of the script I have to use a User:Pass combo. Once in admin, I can follow a few links to 'update' the script database. I need to setup a chron that will do this daily, so I don't have to do it.

I have tried to put the url to this link (update button) in the browser, with the admin pass combo, and it works! How can I add this directive to chron so the chron will do this function for me daily?

This is what worked in the browser...

http://admin:[email protected]...=BuildMainPage

Please help
~Slim~

cashbot 08-04-2007 03:27 AM

Add this to your crontab:


0 0 * * * curl httpblahblah

this uses cURL to retrieve the url you specify, thus running the script... this configuration will fetch the page at midnight every night, look up "crontab" in wikipedia for a description of how to customize this line


All times are GMT -7. The time now is 03:43 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123