[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interpretation of shellcommand classes
From: |
Jan Y. Brueckner |
Subject: |
Re: Interpretation of shellcommand classes |
Date: |
Tue, 27 Jul 2004 01:05:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
No ;-( .. I tried different combinations now. In verbose mode cfengine
even prints the the line it is going to execute in the corect format.
There simply must be a thing we don't know about that seperates the rest
of the line from that test command.
Jan
Geir Hauge wrote:
| On Mon, Jul 26, 2004 at 04:40:54PM +0200, Jan Y. Brueckner wrote:
|
|>~ NPTL = ( '/usr/bin/test "`/bin/uname -r | /usr/bin/awk -F. \'{ print
|>$2 }\'`" -ge "6" ' )
|
|
| How about removing those extra quotes around the "6" and the
| "version-number-thingy" so you won't have to escape?
|
| NTPL = ( "/usr/bin/test `/bin/uname -r | /usr/bin/awk -F. '{ print $2
}'` -ge 6" )
|
| Does that work?
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org
iD8DBQFBBY5NAkBRz9mJJTERAkgDAJ9K49HTZYJqmG8y/zDlTnvyDnhoaQCfbZG1
EkvpPfpqOAP9Y1hHhKo4M8Q=
=GsI8
-----END PGP SIGNATURE-----