ByLost 161 Posted June 7, 2020 Share Posted June 7, 2020 (edited) Hi Devs Google translate Here's a tutorial to automatically clear all your server logs. Create crontab user root crontab -e click "insert" to keyboard and paste * * * * * /bin/sh /usr/home/etcetcetc/game/clear.sh With this command you will clear your log in one minute. Example time crontab: and press ESC and : and wq = :wq and press enter Example screen: No need to restart ok.. Obs: command List crontab: # crontab -l edit crontab: # crontab -e comment crontab (stop crontab) : comment (#) #* * * * * /bin/sh /usr/home/etcetcetc/game/clear.sh Download my script This is the hidden content, please Sign In or Sign Up edit the files to your directory.. Credit: ByLost Enjoy By Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 23 1 5 1 11 Link to comment Share on other sites More sharing options...
Active Member Helia01 2458 Posted January 24, 2021 Active Member Share Posted January 24, 2021 (edited) 1. crontab -e 2. the typical user metin2dev will not be able to exit vim without additional description. Edited January 24, 2021 by Helia01 1 Link to comment Share on other sites More sharing options...
danger 0 Posted June 22, 2024 Share Posted June 22, 2024 looking for a example Link to comment Share on other sites More sharing options...
Premium Shogun 4933 Posted October 3, 2024 Premium Share Posted October 3, 2024 You can set ee as the default editor with: setenv EDITOR ee (assuming we are using the default csh shell) And make this change permanent by adding that same command to the .cshrc file which is found in the user's home directory (that is /root/.cshrc if you are a root user) Link to comment Share on other sites More sharing options...
Premium Criminus 529 Posted November 16, 2024 Premium Share Posted November 16, 2024 Isn’t better to shut down the server every two weeks for about one hour so you can inspect the logs for any anomalies then clear them? That’s what I would do anyway. Link to comment Share on other sites More sharing options...
Recommended Posts