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

SourceForge.net noreply at sourceforge.net
Tue Dec 27 13:20:13 CET 2005


Patches item #1391474, was opened at 2005-12-27 21:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
Submitted By: abs (absd)
Assigned to: Nobody/Anonymous (nobody)
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

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

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