Answer the question
In order to leave comments, you need to log in
How to create a script that will clean up a file?
I need to create a script that will check the file size and if it exceeds the allowed file weight, then clear it, how can I do this?
__________________________________________________________________________________________________________________________________
Suddenly someone
needs cPanel on the server, I went to Cron Jobs, set the time and entered the following command - echo > /home/{name}/public_html/{site}/error_log and now once at a certain time my logs are cleared
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question