#!/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
本文共 255 字,大约阅读时间需要 1 分钟。
#!/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
转载于:https://my.oschina.net/u/1270458/blog/349133