/clearlog

clear program‘s log file with the shell script

Primary LanguageShell

clearlog

clear program‘s log file with the shell script, you only need to input the path of the log files as the argument of the shell script, the shell script will package the log files according to the date(YY-MM) and delete the old files. the shell script work with crontab in the Unix will cleaned the log files regularly.