“Charlie &”에서 일일 실행 출력 이메일을 비활성화하는 방법은 무엇입니까?
Google 페이지가 몇 개 있지만 명확한 답변이 없습니다.
ssmtp대신에 사용 합니다sendmail
답변
읽어 man periodic보고 언급 한 모든 비트를 찾으십시오.output
파일이 /etc/periodic.conf없으면 파일을 작성 하고 *_output변수를 /etc/defaults/periodic.conf로그 파일로 설정 하십시오. 이것이 /일반 단어 인 사용자 계정 대신으로 시작하는 경로 입니다.
$ grep _output= /etc/defaults/periodic.conf
daily_output="root" # user or /file
daily_status_security_output="root" # user or /file
weekly_output="root" # user or /file
monthly_output="root" # user or /file
시스템 로그는 이미에 설치해야한다 /var/log/daily.log, /var/log/weekly.log하고 /var/log/monthly.log.
나는 로깅 및 사용에 대해 약간 놀랍습니다. /var/log/periodic.$(date +%Y%m%d).<type>.log
<type>인 daily, weekly, monthly, security.
답변
_enable플래그를 토글하여 대부분의 테스트를 비활성화 할 수 있습니다/etc/periodic.conf
예를 들면 다음과 같습니다.
daily_status_mailq_enable="NO"
daily_output="/dev/null“로 설정 하면 이메일 수신이 중지되지만 위에서 언급 한 것처럼 보고서에 유용한 정보가 포함될 수 있으므로 대신 파일에 기록 할 수 있습니다.