
crontab을 업데이트하면 화면에 다음 메시지가 나타납니다.
crontab: installing new crontab
지정된 주소로 이메일도 보내도록 구성(cron, crontab 또는 기타 시스템 구성)할 수 있습니까?
내 환경은 다음과 같습니다.
$ uname -a
Linux dev 3.12.62-60.64.8-default #1 SMP Tue Oct 18 12:21:38 UTC 2016 (42e0a66) x86_64 x86_64 x86_64 GNU/Linux
사용했지만 aide
즉시 알림을 찾고 있습니다.
답변1
if crontab -e; then crontab -l | mail -s "New cron table installed for $(whoami) on $(hostname -s)" [email protected]; fi