Jump to content

Recommended Posts

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

0c5e2ae5958da6203b6280bcd0adc2f5.png


With this command you will clear your log in one minute.

 

 

Example time crontab:


Linux na Web - Como agendar tarefas no Linux com o Crontab

 

 

and press ESC and : and  wq = :wq and press enter

Example screen:
fdae2d780d8b23f549312179c764c553.png

 

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

edit the files to your directory..
 

Credit: ByLost

Enjoy
By

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 23
  • Eyes 1
  • Good 6
  • Love 1
  • Love 13
Link to comment
https://metin2.dev/topic/24064-clear-all-log-automatic-cron/
Share on other sites

  • 7 months later...
  • 3 years later...
  • 3 months later...
  • Premium

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)

 

  • 1 month later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.