title: Check if Mac process is running using Bash by process name
body: <p>How do you check if a process on Mac OS X is running using the process's name in a Bash script?</p>
  
  <p>I am trying to write a Bash script that will restart a process if it has stopped but do nothing if it is still running.</p>