¡á Ä¿¸Çµå »ó¿¡¼ ³»¿ëÀ» Á÷Á¢ ÀÔ·ÂÇÒ ¶§
# mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ ¸ÞÀÏ ³»¿ë . #
À§¿¡¼ "." Àº ³¡À» ÀǹÌÇÕ´Ï´Ù. "." ´ë½Å ^D¸¦ »ç¿ëÇϱ⵵ ÇÕ´Ï´Ù.
¡á ½ºÅ©¸³Æ®»ó¿¡¼ ³»¿ëÀ» Á÷Á¢ ÀÔ·ÂÇÒ ¶§
#!/usr/bin/ksh
mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ << EOF ¸ÞÀϳ»¿ë EOF
exit 0
¡á ½ºÅ©¸³Æ®»ó¿¡¼ ÆÄÀϳ»¿ëÀ» ¸ÞÀÏ·Î º¸³¾ ¶§
#!/usr/bin/ksh
mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ < ÈÀϸí
exit 0
¡á ½ºÅ©¸³Æ®»ó¿¡¼ ÷ºÎÈÀÏ·Î º¸³¾ ¶§
#!/usr/bin/ksh
uuencode ÆÄÀÏ¸í µ¿ÀÏÈÀϸí | mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ
exit 0
Âü°í·Î sendmail ¸í·É¾î¸¦ »ç¿ëÇÒ ¶©, ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µË´Ï´Ù.
# sendmail -f¼Û½ÅÀÚÀ̸ÞÀÏ ¼ö½ÅÀÚÀ̸ÞÀÏ From: ¼Û½ÅÀÚÀ̸ÞÀÏ To: ¼ö½ÅÀÚÀ̸ÞÀÏ Subject: Á¦¸ñ ¸ÞÀϳ»¿ë
|