#!/bin/bash
tr -dc _A-Z-a-z#$%^*-0-9 /home/1.txt
cat /home/1.txt |passwd root --stdin
SendStatus=`mail -v -s "test mail" < /home/1.txt | grep -c "Sender ok" `
rm -rf /home/1.txt
if [ "$SendStatus" == "1" ] ; then
echo "Sender mail ok"
else
echo "Sender mail fail!"
sleep 50
sh /home/ceshi.sh
fi
转:
阅读(1629) | 评论(0) | 转发(2) |