Grep_process

script detect process running

Example :

grep_process.sh

    ps cax | grep httpd
    if [ $? -eq 0 ]; then
      echo "Process is running."
    else
      echo "Process is not running."
    fi

Date : 2020.10.12