Scheduling this job daily saves me a lot of time from having to do this manually by editing the cron file.
For this job I've scheduled, it's set to delete old WAV files and logs at 6:30pm then reboot at 6:35pm every day.
Type in SSH:
crontab -e
Add to the bottom then save
### remove WAV files and remove log file daily at after office hours
30 18 * * * rm -f /var/spool/asterisk/monitorDONE/ORIG/*.wav
30 18 * * * rm -f /var/log/httpd/*
35 18 * * * sudo reboot
For this job I've scheduled, it's set to delete old WAV files and logs at 6:30pm then reboot at 6:35pm every day.
No comments:
Post a Comment