...additionally you might mean:
Code:
COUNT=`pgrep -f ABC|wc -l`
or if you have BASH:
Code:
COUNT=($(pgrep -f ABC)); [ ${#COUNT[@]} -eq 0 ] && doSomething
where doSomething() can be defined as what druuna wrote or as
Code:
doSomething() { echo "/path/to/nohup /path/to/startprocess.sh"|/path/to/at now; }
if you have access to the (underrated and rarely mentioned) 'at' service.