
echo "Log files not updated recently" | mailx -s "Negative Alert" -c "[email protected]" -b "[email protected]"
이 오류 메시지가 나타납니다.
당신이 준 플래그는 메시지를 보내는 것이 아니기 때문에 의미가 없습니다.
저는 AIX 머신에서 이 스크립트를 실행하고 있습니다. 이 문제를 해결하도록 도와주세요
답변1
그게 문제야 -b
, 그냥 버려라.
echo "Log files not updated recently" | mailx -s "Negative Alert" -c "[email protected]" "[email protected]"