#!/bin/bash #this will determine the total number of processes of the machine if [ $# -eq 0 ]; then $1 = 75 fi TOTALPROC=`ps -ef | grep -c /` if (( $TOTALPROC -gt $1 )) ; then echo "ERROR MESSAGE - # processes > the arguement" else echo "# processes < the arguement" fi echo "The total number of process is ${TOTALPROC}"