I
I
Igor2018-08-22 14:54:01
Task Schedulers
Igor, 2018-08-22 14:54:01

Cron - how to use?

Hello!
There is a script that parses data via cURL from the page and enters it into the database
. requests are often fulfilled.
Question: To execute cron, you just need to enter the execution of this script in cron on the hosting, let's say every 10 minutes, and on the output page, just pull data from the database
. Or do you need to write some special commands in the parser for cron?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yan-s, 2018-08-22
@m0pfin

And who knows how it works for you, maybe you pass some parameters in GET to the script or something else.
Run the script from the command line, if it works, then it will be ok from cron.
Threat
The first paragraph of the question, what is it for?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question