![Mailx 명령에 복사본을 보내는 데 문제가 있습니다](https://linux55.com/image/120546/Mailx%20%EB%AA%85%EB%A0%B9%EC%97%90%20%EB%B3%B5%EC%82%AC%EB%B3%B8%EC%9D%84%20%EB%B3%B4%EB%82%B4%EB%8A%94%20%EB%8D%B0%20%EB%AC%B8%EC%A0%9C%EA%B0%80%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.png)
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]"