Re: cronjob not running

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



On 2013-01-22, SilverTip257 <silvertip257@xxxxxxxxx> wrote:
>
> If you want it to run every ten minutes use:
> **/10* * * * * curl http://mysite.com/test.php
> for ten minute intervals.

It is not clear where the extra asterisks came from, but the syntax
should be

*/10 * * * * curl ....

Strictly speaking, it is not 10 minute intervals; it is every multiple
of 10.  So if you save your crontab at 7:09, the job will still run at
7:10, not 7:19--it won't figure out the current time and run every ten
minutes from then.  (Nobody here mentioned it, but I've seen it come up
in other contexts.)

>> 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 message?  If you are hoping to see the curl output, then ...

>> note , i logged in as root user.

...you need to check root's mailbox.  If you haven't checked there yet
you should do so.  If you want to do something else with the output, you
need to specify what that is.

If it's not there, then as the previous poster mentioned check
/var/log/cron.

--keith

-- 
kkeller@xxxxxxxxxxxxxxxxxxxxxxxxxx


_______________________________________________
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