I'm having trouble with a script to see if Firefox is running. I am by no means a coder, so any help is appreciated.
Here is what I am trying -
#!/bin/bash
process="Firefox"
processrunning=$( ps axc | grep "${process}" )
if [ "$processrunning" != "" ] ; then echo "$process IS running, we do nothing now"
else echo $process IS NOT running - run custom trigger here to update"
fi
exit 0
