※ 引述《fbiceo (執行長)》之銘言:
: 現在有個問題需請問各位前輩,我有安裝Logwatch於Freebsd機器上
: 若以ROOT帳號直接執行 /usr/share/logwatch/scripts/logwatch.pl
: 可以正常得到資訊並且寄信到信箱中
: 但是如果我使用ROOT帳號,並且用 crontab -e進入編輯
: 3 * * * * /usr/share/logwatch/scripts/logwatch.pl
: 這樣卻不會每個小時自動執行產生一份報告給我
: 我想知道是哪裡出了問題嗎?
crontab -e 的檔案最前面加一行
mailto="root"
這樣呢 ?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.8.250.102