Linux/Unix Process Monitor SSH (Count of all running processes)

Version 1

    Command Line=ksh ${SCRIPT}

    -----------

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

    status=`ps -ef | grep -v grep | wc -l`

    if [[ -n "$status" ]]; then
        echo "\nStatistic: $status"
    else
            echo "\nStatistic: 0"
    fi