isProcessRunning () {if [$ (pidof $ 1)> / dev / null]; затем retval = 'true'; else retval = 'false'; Fi; echo $ retval; }
isProcessRunning geany
true