sonic-buildimage/platform/centec/sonic-platform-modules-embedway/es6220/scripts/remove_syslog.sh

10 lines
174 B
Bash
Raw Normal View History

#!/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