Answer the question
In order to leave comments, you need to log in
How to add a new task to cron?
I can't figure out how to add a new task to cron.
I need to run a php script every day at 18:00, crontab -e 0 18 * * * /var/www/....
what am I doing wrong?
Answer the question
In order to leave comments, you need to log in
preg_match_all('/test."([\w\/]+\.php)"/', $str, $matches);
$matches = array_pop($matches);
First crontab -e
A after - enter the time command.
Separately, in short.
Edit tasks:
crontab -e
View list:
crontab -l
Condition is correct, just specify an interpreter, something like:
0 18 * * * /usr/bin/php /var/www/....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question