#!/bin/bash
while [ 1 ]
do
SendMail_is_exstit=$(ps -ef | grep "feed SendMail" | grep -v grep | wc -l)
if [ ${SendMail_is_exstit} == 0 ]
then
cd /var/www/sdkfeed/
./app/Console/cake SendMail
fi
sleep 60
done
时间: 2024-10-07 06:32:37
#!/bin/bash
while [ 1 ]
do
SendMail_is_exstit=$(ps -ef | grep "feed SendMail" | grep -v grep | wc -l)
if [ ${SendMail_is_exstit} == 0 ]
then
cd /var/www/sdkfeed/
./app/Console/cake SendMail
fi
sleep 60
done