Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Dec 2012 14:50:38 -0600
From:      Martin McCormick <martin@x.it.okstate.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Safe Way to Tell if Process is Running
Message-ID:  <201212042050.qB4Koc70086364@x.it.okstate.edu>

next in thread | raw e-mail | index | archive | help
Robert Bonomi writes:
> 'man 2  kill' tells all.

	I believe that is the first or second time I have used
Section 2. I appreciate the reminder. It looks like ps -p ###
>/dev/null appears to do what I need without producing output

ps -p 54321 >/dev/null && date ran the date command if there was
a process with that number and produced nothing if no process
54321 existed.

Martin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212042050.qB4Koc70086364>