help-cfengine
[Top][All Lists]
Advanced

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

easy question about execresult?


From: Atom Powers
Subject: easy question about execresult?
Date: Wed, 25 Jan 2006 10:35:26 -0800

Is there an easy answer to why this doesn't work?
--

#!/var/cfengine/bin/cfagent -qvKf
#################################
control:
split = ( "," )
PerlVer = ( ExecResult(/usr/bin/perl -V:version | /usr/bin/cut -d "'" -f 2) )

alerts:
charon::
"PERL_VER=${PerlVer}"
--

>From my shell I get the resurt I want:
apowers@charon:~$/usr/bin/perl -V:version | /usr/bin/cut -d "'" -f 2
5.8.7
--

>From cfengine I get the uncut version:
---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------

cfengine:: PERL_VER=version='5.8.7';




--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--




reply via email to

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