Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、私はコマンド uuencode で試した部分を添付して電子メールを送信したいのですが、私を助けることができるメールがメールボックスにありません。
cat body.txt | uuencode /root/report-20130322.pdf | mail -s "Daily Report" user@gmail.com
どのファイルを添付しますか? パイプは左から右にあるため、これが最初に行われ、違法です:
cat body.txt | uuencode /root/report-20130322.pdf
おそらくあなたは試すことができます
cat body.txt > tmpfile uuencode /root/report-20130322.pdf >> tmpfile cat tmpfile | mail -s "Daily Report" user@gmail.com