[Snort-users] startup script

Erek Adams erek at ...950...
Thu Sep 18 05:06:25 EDT 2003


On Wed, 17 Sep 2003, Craig Hammer wrote:

> The startup script for snort calls a function named "pidof" that is not
> present on Solaris 8.  Is there a similar function I can call in Solaris to
> get the pid?

Close...  Either use pgrep or

	ps -ef |grep snort |grep -v grep |awk '{print $2}'

Cheers!

-----
Erek Adams

   "When things get weird, the weird turn pro."   H.S. Thompson




More information about the Snort-users mailing list