[CentOS] cronjob not running
SilverTip257
silvertip257 at gmail.com
Tue Jan 22 18:26:05 UTC 2013
On Tue, Jan 22, 2013 at 1:23 PM, Adekoya Adekunle <adekunleadekoya at gmail.com
> wrote:
> i did this from the console
> crontab -e
>
> then i inserted this in my vi editor
> 10 * * * * curl http://mysite.com/test.php
>
>
That will run 10 minutes after each hour.
If you want it to run every ten minutes use:
**/10* * * * * curl http://mysite.com/test.php
for ten minute intervals.
Check /var/log/cron to see if it gives you any hints.
> then i exited vi
>
>
> then i did crontab -l
> and the cron job was listed
>
> then i did
>
> /sbin/service crond start
>
> and i waited for 10 mins to get a message echo to my console. the message
> is displayed in my browser when the php script(http://mysite.com/test.php)
> is loaded via my browser. The message is also shown on my console when d
> curl command is run direct from the console.
>
> the problem is getting the message from the cronjob.
>
> what could be wrong ? could it be that the job is not well setup ?
>
>
> note , i logged in as root user.
>
>
> please help
>
>
> regards
>
> kunle
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
--
---~~.~~---
Mike
// SilverTip257 //
More information about the CentOS
mailing list