|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 175 article |
2002-08-17 17:54:32 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
º¯°æ À¯µ¿ ¾ÆÀÌÇÇ ¸ÞÀÏ·Î ¼Û½Å (cron ÀÌ¿ë) |
|
|
from http://oops.org
----------------------
#!/bin/sh
IPADDR=`ifocnfig ppp0 2> /dev/null | grep 'inet addr' | awk '{print $2}'
| sed -e 's/.*://'`
MAIL="
From: from at addr.com
To: to at addr.com
Subject: º¯°æ IP
MIME-Version: 1.0
Content-Type: text/plain; charset="EUC-KR"
#html ¸ÞÀϼ۽Žà -> Content-Type: text/html; charset=euc-kr
Content-Transfer-Encoding: 8bit
$IPADDR
"
echo ${MAIL} >> /tmp/mailtext.txt
sendmail -vt < /tmp/mailtext.txt
rm -f mailtext.txt
exit 0
|
|
Page Loading [ 0.02 Sec ]
SQL Time [ 0 Sec ]
|
|
|