Xymon Mailing List Archive search

Question on df processing for xymonclient-linux.sh

list Jeremy Laidman
Fri, 13 Apr 2012 13:37:53 +1000
Message-Id: <user-08d0d92ed063@xymon.invalid>

On Fri, Apr 13, 2012 at 12:11 AM, Deiss, Mark <user-5cd8675c2346@xymon.invalid>wrote:
A bit concerned that the df line can have a dangling "-x" option if the
EXCLUDES variable is not populated.

Perhaps just wrap the variable in quotes like so:

  df -Pl -x iso9660 -x "$EXCLUDES" | sed -e

Then "df" doesn't throw an error.

J