#!/bin/sh
#
#	NAME
#		pid - Find process ID numbers for a process by name.
#
#	SYNOPSIS
#		pid processname

PATH=/bin/athena:/bin:/usr/bin:$PATH

case "`machtype`" in
"sun4")		options="-u $user"	;;
"rsaix")	options="ax"		;;
*)		options="x"		;;
esac

ps $options | egrep -v "awk|egrep|punt|$$" |\
awk "/$1/ {print "\$"1}"
