CodeOverload
CodeOverload

Reputation: 48545

Cron command to run PHP script every 10 minute

In my hosting i have a section for cron job like this:

alt text
(source: site-helper.com)

The PHP script is called "croned.php", which I want it to run every 10 minutes.

What I will fill in every field?

I tried but it didn't work.

Note: the full path to the script is: /home/axelzd/domains/hellodom.com/public_html/croned.php

Upvotes: 3

Views: 3270

Answers (3)

Anubhab
Anubhab

Reputation: 1786

try this

*/10 * * * * <command_to_be_invoked>

Upvotes: 1

jldupont
jldupont

Reputation: 96834

Put */10 in the minutes whilst putting * in all other fields.

Upvotes: 8

Marek Karbarz
Marek Karbarz

Reputation: 29324

Usually you can use commas to separate the cron minutes/hours etc. - 0,10,20,30,40,50 in your minute field (but I can't guarantee your admin will take it - I know Plesk does) and * in all others . The command is more tricky, but something like this should do /usr/bin/wget -q -t 5 --delete-after URL_TO_YOUR_CRON or php PATH_TO_YOUR_PHP_FILE_ON_THE_SERVER

Upvotes: 2

Related Questions