(2)[stone]/bin > cat mail.sh
#À̰͵µ ÃÖ¾ÇÀÇ ¾Ë°í¸®ÁòÀ¸·Î.. °èÁ¤»ý¼ºµÇ¾ú´Ù´Â Á¦¸ñÀ¸·Î
#°¢Á¾Æнº¿öµå¿Í ¼ºêµµ¸ÞÀÎÀ» ½ÅûÀÚ¿¡°Ô ¸ÞÀÏ º¸³»ÁÖ´Â ¸ðµâ
clear
echo "==============================================================="
echo " Mailer"
echo "==============================================================="
echo "°èÁ¤:\c"
read x
echo "Æнº¿öµå:\c"
read xx
echo "À̸ÞÀÏ:\c"
read xxx
echo "µµ¸ÞÀÎ:\c"
read xxxx
echo " telnet backrush.com ">mailtxt
echo " login: $x ">>mailtxt
echo " passwd:$xx ">>mailtxt
ls -l /usr/local/mysql/data|grep $x >mq
if [ -s mq ]
then
echo " mysqldb :$x ">>mailtxt
echo " mysql user:$x ">>mailtxt
echo " mysql passwd:$xx ">>mailtxt
else
:
fi
rm mq
grep $xxxx /var/named/backrushcom.zone >mq
if [ -s mq ]
then
echo " ¼ºêµµ¸ÞÀÎ:$xxxx.backrush.com Ȩµð·ºÅ丮 docs">>mailtxt
else
:
fi
echo " ÇØ´çÁú¹®»çÇ×À̳ª ¹®ÀÇ»çÇ×Àº ÇØ´ç°Ô½ÃÆÇÀ» ÀÌ¿ëÇϼ¼¿ä ">>mailtxt
/usr/ucb/mail -s "°èÁ¤»ý¼º¿Ï·á" $xxx <mailtxt
clear
cat mailtxt
echo "Any Key Press................................."
read m
rm mailtxt
rm mq
total.sh
(3)[stone]/bin >
|