There is a python script, set the task in cron to execute it once a day.
14 02 * * * cd /home/user/project/tools/ && ./script.py > /home/user/project/logs/log_script I check the log file and find out that every day the log is new, that is, yesterday's data is overwritten by new ones.
Tell me how to set up to write to the file, and not grind it every day?
Well, absolutely fantastic if it were added to the beginning of the file, and not to the end.
>with>>- KoVadim