I
I
Igor2018-09-21 16:53:51
Task Schedulers
Igor, 2018-09-21 16:53:51

Page parsing + Cron, how to start the parser by time?

Good day everyone,
Guys wrote a page parser - where I pull out my balance and put it in the database
- because there are several pages where you need to find out the balance and go into each one to watch its niok, for this I actually wrote the parser.
There are GET/POST requests for authorization in
the parser - Question: how to run this parser according to the schedule in cron:
V2V5q5GsxW3awm.png
BUT it doesn't run)
Please help me figure it out)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Sokolov, 2018-09-21
@m0pfin

You need to specify the full paths to the executable files, because cron is not running in the user's environment where the PATH variable is set.

# which php
/usr/bin/php

In the scheduler:
Additionally, look for errors in /var/log/cron, /var/log/messages, /var/log/syslog depending on the server operating system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question