Linux/Unix Process Monitor SSH (Specific Process)

Version 1

    Command Line: ksh ${SCRIPT}

    -----------------------------------------------

    #!/usr/bin/ksh
    #set -x

    status=`ps -ef | grep Profiler_Agent | grep -v grep`

    if [[ x$status = x ]]; then
        echo "\nStatistic: 1"
       
    else
            echo "\nStatistic: 0"
    fi