help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.1.17 having issue with ExecResult() using pipelines


From: nathan r. hruby
Subject: Re: 2.1.17 having issue with ExecResult() using pipelines
Date: Fri, 11 Nov 2005 07:59:09 -0500 (EST)

On Fri, 11 Nov 2005, Mark Burgess wrote:

Nathan,

binning cats is cruel so cfengine doesn't allow you to gloat with "yada
yada" afterwards.

Umm.. ok :)

Actually this has to do with the fact that no shell is used to wrap the
command. It could be useful to have a functino which does wrap too. For
now you can do /bin/sh to hush up the cruelty.

The exact line that is causing the hang is:
  CurrentLoad = ( ExecResult(/bin/sh -c "/bin/cat /proc/loadavg | /bin/awk '{print 
$1}' | tr -d '\n'") )

Is that not correct?  It does work in 2.1.14, which is why I'm perplexed.

Thanks!

-n


--
-------------------------------------------
nathan hruby <nhruby@uga.edu>
uga enterprise information technology services
production systems support
-------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]