[Pkg-nagios-devel] Bug#408136: error in /etc/init.d/nagios2
prevents installation of nagios2-common
Mike O'Connor
stew at vireo.org
Fri Jan 26 17:19:26 CET 2007
+++ Marc Haber [26/01/07 16:56 +0100]:
>On Tue, Jan 23, 2007 at 01:27:37PM -0500, Mike O'Connor wrote:
>> diff -ru nagios2-2.6.orig/debian/nagios2-common.nagios2.init nagios2-2.6/debian/nagios2-common.nagios2.init
>> --- nagios2-2.6.orig/debian/nagios2-common.nagios2.init 2007-01-23 13:26:04.000000000 -0500
>> +++ nagios2-2.6/debian/nagios2-common.nagios2.init 2007-01-23 13:26:17.000000000 -0500
>> @@ -114,7 +114,7 @@
>> exit 6
>> fi
>>
>> -THEPIDFILE="$(grep lock_file $NAGIOSCFG | awk '{print $2}' FS="=")"
>> +THEPIDFILE="$(grep lock_file $NAGIOSCFG | awk 'BEGIN{FS="="}{print $2}')"
>
>Would you be satisfied with
>awk -v FS="=" '{print $2}'
>as well?
>
>I seem to have inadvertently used a construction that is not awk
>standard, but mawk and gawk handle it just fine. The -v stuff should
>be standard-compliant, isn't it?
>
>Greetings
>Marc
yeah, works for me:
:) stew at catfish:~ $ readlink -f (which awk)
/usr/bin/original-awk
:) stew at catfish:~ $ awk -v FS=":" '/stew/{print $2}'</etc/passwd
x
:) stew at catfish:~ $
thanks,
stew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20070126/017db20c/attachment.pgp
More information about the Pkg-nagios-devel
mailing list