#!/bin/bash if ps -ef|grep "php index"|egrep -v grep >/dev/null then echo "" 2>&1 >> /dev/null; else php index 2>&1 >> result.txt & fi
#!/bin/bash if ps -ef|grep "php index"|egrep -v grep >/dev/null then echo "" 2>&1 >> /dev/null; else php index 2>&1 >> result.txt & fi