All pastes #819753 Raw Edit

Miscellany

public shellscript v1 · immutable
·published 2007-12-17 04:32 UTC
rendered paste body
#!/bin/bash#this will determine the total number of processes of the machineif [ $# -eq 0 ]; then	$1=75fiTOTALPROC=`ps -ef | grep -c /`if [ $TOTALPROC -gt $1 ] ; then	echo "ERROR MESSAGE - # processes > the arguement"else	echo "# processes < the arguement"fiecho "The total number of process is ${TOTALPROC}"