[buug] checking a pid

f.johan.beisser jan at caustic.org
Wed Feb 26 17:14:18 PST 2003


On 26 Feb 2003, Ian Zimmerman wrote:

> Under Linux, I solved this by stat'ing /proc/<pid>/ .
> What is the BSD way?

ps -axjw | grep foo | awk '{print $3}'

the "j" flag is handy.

-------/ f. johan beisser /--------------------------------------+
  http://caustic.org/~jan                      jan at caustic.org
	"Champagne for my real friends, real pain for
	  my sham friends." -- Tom Waits




More information about the buug mailing list