Avalanche Posted April 20, 2003 Share Posted April 20, 2003 How exactly do I use cron? I don\'t understand how it works, really at all... I think that this would run /scripts/restock every 10 minutes: 10 * * * * * /scripts/restock 20 * * * * * /scripts/restock 30 * * * * * /scripts/restock 40 * * * * * /scripts/restock 50 * * * * * /scripts/restock 60 * * * * * /scripts/restock but I don\'t know where to put that or anything of the such. Thanks. Link to comment https://forums.phpfreaks.com/topic/370-using-cron/ Share on other sites More sharing options...
Coastie Posted April 20, 2003 Share Posted April 20, 2003 you have 1 to many * 10 * * * * /scripts/restock Link to comment https://forums.phpfreaks.com/topic/370-using-cron/#findComment-1229 Share on other sites More sharing options...
Avalanche Posted April 20, 2003 Author Share Posted April 20, 2003 Okay, thanks. And where exactly do I use this? Link to comment https://forums.phpfreaks.com/topic/370-using-cron/#findComment-1230 Share on other sites More sharing options...
Coastie Posted April 20, 2003 Share Posted April 20, 2003 I have no idea. Link to comment https://forums.phpfreaks.com/topic/370-using-cron/#findComment-1231 Share on other sites More sharing options...
Avalanche Posted April 20, 2003 Author Share Posted April 20, 2003 Lol, thanks for the info, anyway. Link to comment https://forums.phpfreaks.com/topic/370-using-cron/#findComment-1232 Share on other sites More sharing options...
Coastie Posted April 20, 2003 Share Posted April 20, 2003 I thought that script in your sig is what you were referring to. log in as the user you want to run the script as, and type crontab -e that will open the users crontab in the default editor, probably vi add your lines in there. Link to comment https://forums.phpfreaks.com/topic/370-using-cron/#findComment-1236 Share on other sites More sharing options...
Avalanche Posted April 20, 2003 Author Share Posted April 20, 2003 I don\'t use PuTTY, sorry. I use PHPMyAdmin and a website on a hosted machine. Link to comment https://forums.phpfreaks.com/topic/370-using-cron/#findComment-1243 Share on other sites More sharing options...
Coastie Posted April 20, 2003 Share Posted April 20, 2003 you need to set up cron jobs from a shell, so you will need to have your host set it up for you. Link to comment https://forums.phpfreaks.com/topic/370-using-cron/#findComment-1251 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.