#!/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

arrow
arrow
    全站熱搜

    thoao 發表在 痞客邦 留言(0) 人氣()