#!/bin/bash
count=0
echo $count
for line in `ls ./filename*`
do
count=$(($count+1))
done
if [ $count -gt 0 ]; then
echo "You got the New Mail From Server" | mail -s "New File Arrive" receiver_mail@localhost
fi
全站熱搜
#!/bin/bash
count=0
echo $count
for line in `ls ./filename*`
do
count=$(($count+1))
done
if [ $count -gt 0 ]; then
echo "You got the New Mail From Server" | mail -s "New File Arrive" receiver_mail@localhost
fi
留言列表