R&D/클라우드 140

cron

CentOS에서 보면 /etc/cron.daily/etc/cron.hourly/etc/cron.weekly/etc/cron.monthly 디렉토리가 존재한다. 해당 디렉토리에서 shell script을 넣어두면 해당 주기별로 실행한다. ex) /etc/cron.daily/delete_log #!/bin/bash find /var/log -mtime +3 -exec rm {} \;그러면 실제적으로 어느 시간에 해당 cron이 도는지는 anacrontab을 통해서 알수 있다./etc/anacrontab 을 보면# /etc/anacrontab: configuration file for anacron # See anacron(8) and anacrontab(5) for details. SHELL=/bin/shP..

R&D/클라우드 2017.02.14