John Oliver([EMAIL PROTECTED])@Thu, Apr 03, 2008 at 01:29:09PM -0700: <snip>
> From the command line, sudo /usr/bin/nagios -d > /etc/nagios/nagios.cfg && ps -C nagios returns one line of > output. Inside of the init script, though, I wind up with three > lines, and I'll be damned if I know why. I munged around that by > redirecting the output to a temp file and tailing that temp file > into the runfile, and that seems to be working. But I dislike > kludges. <snip> If pidof isn't available to you, bash has a "$!" shell variable. It expands to the PID of the most recently executed /background/ process. Don't know if it's available in sh, which would be much better for init scripts. Wade Curry syntaxman -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
