Is it possible to execute shell script in command line like this :
counter=`ps -ef | grep -c \"myApplication\"`; if [ $counter -eq 1 ] then; echo \"true\"; >
I am using Mac OS and following worked very well
$ counter=`ps -ef | grep -c "myApplication"`; if [ $counter -eq 1 ]; then echo "true";fi;
true
Space is needed after [ and before ]