[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getting a solid result from an ExecResult...
From: |
Doug Nordwall |
Subject: |
getting a solid result from an ExecResult... |
Date: |
Thu, 05 Sep 2002 08:38:07 -0700 |
I'm trying to do the following
myVar = (ExecResult (/bin/grep astring ${myFile}) )
Now, this does return the result, save that the grep finds 3 instances,
and it appears that cfengine ignores the \n's on the end and strings
all the results together. Fine, I say, to myself , I'll work around it,
so I do things like
myVar1 = (ExecResult (/bin/grep astring ${myFile} | /usr/bin/head -1) )
myVar2 = (ExecResult (/bin/grep astring ${myFile} | /usr/bin/head - 2 |
/usr/bin/tail -1) )
Oddly, the second line seems to break cfengine. None of them appear to
work correctly.
Has anyone gotten something like this to work?
--Doug Nordwall
- getting a solid result from an ExecResult...,
Doug Nordwall <=