Re: cronjob not running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Jan 22, 2013 at 1:23 PM, Adekoya Adekunle <adekunleadekoya@xxxxxxxxx
> 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@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
---~~.~~---
Mike
//  SilverTip257  //
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux