View Full Version : Cron job
rontol
03-16-2007, 09:15 PM
Hello,
This is my 1st here :)
Any good link where to start to learn cron job?
I'm thinking to write/use a simple php script which is integrated with cron job to make an automated blog.
Any suggestion?
Cirtex Admin
03-17-2007, 01:11 AM
Hi Rontol
This might be helpful:
http://www.unixgeeks.org/security/newbie/unix/cron-1.html
And theres tutorial on setting up Cronjob for cPanel at www.cirtexhosting.com/tutorials.shtml
Cheers
miklosandras
04-16-2007, 08:23 PM
I try a lot of way to use cronjob. Most of way not worked at baby server... But I find a simple solution:
GET http://domain.com/cronjobs.php
It is working success :)
Cirtex Admin
04-17-2007, 03:23 AM
Yep that would work but probably not the best way to do it.
Cheers
Hi,
I've read the tuturial and have set it up but am getting permission denied, why?
miklosandras
04-17-2007, 09:29 PM
Yep that would work but probably not the best way to do it.
Cheers
Okay, then what do u think, what is the best way to do cronjob?
Cirtex Admin
04-17-2007, 09:34 PM
Hi,
wget sometimes is permissioned to be not allowed by user so some servers its disabled for users. Might want to try curl, lynx, if those are disabled too, you can try just /usr/bin/local/php /home/youruser/public_html/file.php for example will do or
php -q -f /home/user/public_html/file.php
Cheers
I've tried php -q -f /home/user/public_html/ and I'm not getting the emails through now, does that mean it's working?
guear
04-21-2007, 09:30 AM
I've tried php -q -f /home/user/public_html/ and I'm not getting the emails through now, does that mean it's working?
If you mean email about permissions being denied, then yes most likely it should be working.
Thanks, it must be working now cause its set for every minute and I've heard nothing for about 2 hours or so. Yippe!!!!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.