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: Brendan Strejcek
Subject: Re: 2.1.17 having issue with ExecResult() using pipelines
Date: Fri, 11 Nov 2005 14:32:53 -0600
User-agent: Mutt/1.5.6+20040818i

nathan r. hruby wrote:

> I have a lot of these little pipelines, all culled from the little
> shell scripts I'm trying to get rid of so it looks like the kludgy
> special variable it is.. Which doesn't seem to work either.

You might be able to replace most of the awk '{print $1}'-type calls
with "cut" invocations:

    $ cut -d" " -f1 </proc/loadavg
    0.00

Best,
Brendan

--
Senior System Administrator
The University of Chicago
Department of Computer Science

http://www.cs.uchicago.edu/people/brendan

http://people.cs.uchicago.edu/~brendan




reply via email to

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