W
W
wannafope2016-02-27 00:37:53
linux
wannafope, 2016-02-27 00:37:53

Why is Cron not executing the script?

If you open https://site.ru/cron from a browser , the system is accruing bills. Each time the page is refreshed in the browser, an accrual occurs.
I add it to cron, it doesn’t start, I decided to check it by executing the command:

root# wget site.com/cron 
--2016-02-27 00:33:54--  http://site.com/cron
Resolving site.com (site.com)... 192.124.249.8
Connecting to site.com (site.com)|192.124.249.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: 'cron.27'

     0K                                                        0.00 =0s

2016-02-27 00:33:54 (0.00 B/s) - 'cron.27' saved [0/0]

BUT, the calculation does not occur. Where to dig and what to look for, help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Ulanov, 2016-02-27
@antonsr98

how is your cron script written?

A
Alex F, 2016-03-03
@delvin-fil

CRON "understands" ONLY FULL paths!!! What's in your line, what's in the script being run - it doesn't matter. Nobody is going to fix this, because it happened with SYSV.
You can find out the path to the program with the which or whereis command.

K
ky0, 2016-03-07
@ky0

And why, in fact, wget, and not curl?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question