V
V
voproser2019-10-29 23:01:04
Regular Expressions
voproser, 2019-10-29 23:01:04

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

3 answer(s)
0
0xD34F, 2018-09-08
@valeragan98

preg_match_all('/test."([\w\/]+\.php)"/', $str, $matches);
$matches = array_pop($matches);

R
Ronald McDonald, 2019-10-29
@Zoominger

First crontab -e
A after - enter the time command.
Separately, in short.

V
Vitsliputsli, 2019-10-29
@Vitsliputsli

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 question

Ask a Question

731 491 924 answers to any question