To find if process is running or not

Open Terminal and run

(ps -ef|grep -v grep|grep procees_name_here >/dev/null && echo ”running” || echo ”not running”)

An example:
(ps -ef|grep -v grep|grep firefox >/dev/null && echo ”running” || echo ”not running”)