W
W
WQP2014-07-03 18:53:23
PHP
WQP, 2014-07-03 18:53:23

How to properly set up Cron?

Hello, how to set up Cron correctly? You need to run the script every 15 minutes. I do this but it doesn't work for some reason.
/home/****/public_html/****.ru/twitter/twit.php

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vit, 2014-07-03
@fornit1917

#> crontab -e
and add to the end:
*/15 * * * * /usr/bin/php /path/to/your/script

R
Rpsl, 2014-07-03
@Rpsl

Because you didn't specify a run interval. Read about cron file syntax.
If it’s hard to figure it out right away, then use generators.
cron.nmonitoring.com/cron-generator.html

W
WQP, 2014-07-03
@WQP

That's the problem, everything is set up-929206895.jpg

A
Andrey Burov, 2014-07-03
@BuriK666

do better

cd /home/****/public_html/****.ru/twitter/; /usr/bin/php twit.php

D
Danil, 2014-07-04
@danleks

nano /etc/crontab
*/15 * * * * php /home/****/public_html/****.ru/twitter/twit.php No
permission issues?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question