[Nagiosplug-devel] [ nagiosplug-Patches-1391474 ] check_log.sh uses gnu tail extension

SourceForge.net noreply at sourceforge.net
Wed Mar 22 06:32:10 CET 2006


Patches item #1391474, was opened at 2005-12-27 21:19
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1391474&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: abs (absd)
>Assigned to: Ton Voon (tonvoon)
Summary: check_log.sh uses gnu tail extension

Initial Comment:
plugins-scripts/check_log.sh uses the gnu extension to
tail: '--lines=1' rather than the more portable '-n 1'.
The following would ensure it works on more systems:

-lastentry=`$GREP "$query" $tempdiff | $TAIL --lines=1`
+lastentry=`$GREP "$query" $tempdiff | $TAIL -n 1`


thanks

----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2006-03-22 14:31

Message:
Logged In: YES 
user_id=664364

Abs,

Thanks. This has already been changed to $TAIL -1 in CVS.

Closing this call.

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1391474&group_id=29880




More information about the Devel mailing list