Why and what files are created due to cron?

I have cRON on mysql.php file.

Kron performs curl requests and concludes.

Question: Why are files mysql.php.1,2,3,4,5,xxx they weigh 0, but since the files are very much open root is about 5 minutes.

April 19th 20 at 12:14
3 answers
April 19th 20 at 12:16
you seem to have the script via wget run ?
@vida.Predovic Yes, all right, so you need to run the script using wget? - eli.Kunde commented on April 19th 20 at 12:19
better using /usr/bin/php /pathto/script.php
if there is relative include can
cd /pathto/; /usr/bin/php script.php

if using wget twitched URI. i.e., running the router in the engine, then you can watch
side by side file cron.php sometimes bundled with popular engines for lichnyh call controllers. - vida.Predovic commented on April 19th 20 at 12:22
April 19th 20 at 12:18
what by default downloads the page to disk
put the option just to display it on screen or silent mode
and well, the whole idea is idiotic, why the heck there wget run just script - Rudolph.Crist commented on April 19th 20 at 12:21
April 19th 20 at 12:20
This can occur for several reasons:

- Create files mysql.php.* may not happen due to the crown, and in consequence of the execution of another script.
Files are created more than 1 file per minute, we recommend you to watch the process that creates the file. For example, the open TOP on the server and observe for 1-2 minutes to a running process.
- Creation of files may be due to stdout after the execution of the script for the crown. Redirect stdout to >/dev/null 2>&1:
* /putter >/dev/null 2>&1
- Creation of files can be determined by the script that is invoked by the crown. Make sure of correctness of writing of the invoked script. Disable the crowns and see. If the files are not created, then it is certainly the job of the script.

Please note that if you have a large number of files on the server, you may run out of inodes space on the server and he will be released from regular work. Also a large number of files on the server slows.

)(*&$^%@#&YUIJKEMS(_*&(^%#^$)) See Jack already answered, sorry for -8 minutes ;/

Find more questions by tags The task schedulersUbuntuHosting