S
S
Skinner2015-06-17 14:30:33
PHP
Skinner, 2015-06-17 14:30:33

How to make cron run a script?

Hello!
You want cron to run the script every minute.
wrote this code:
*/1 * * * * root php -f /home/path/to/site/file/json.php >/dev/null 2>&1
doesn't work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D', 2015-06-17
@kazhan

To run every minute you can simply:

* * * * * root php -f /home/путь/к/сайту/к файлу/json.php >/dev/null 2>&1

O
Oleg, 2015-06-17
@coverty

*/60 * * * * next command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question