#!/bin/csh -f # # checkproc.sh # # Checks for occurence of processes running program "$1" # # Returns number of matching processes found # # Kevin P. Inscoe (kevin@inscoe.org) 8/24/99 # # @ pids = `/bin/ps -e -o "%a" | /bin/grep $1 | /bin/grep -v checkproc.sh | /bin/grep -v grep | /bin/wc -w` /bin/echo $pids