sonic-buildimage/platform/centec/sonic-platform-modules-embedway/es6220/scripts/remove_syslog.sh
2020-04-17 00:38:48 -07:00

10 lines
174 B
Bash
Executable File

#!/bin/bash
#remove syslog
sudo find /var/log/ -mtime +7 -name "syslog.*" | sudo xargs rm -rf
#echo "remove_syslog.sh crontab is running" >> /home/admin/shell.txt
exit 0