[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: editfiles SetScript & RunScript?
From: |
Alexander Jolk |
Subject: |
Re: editfiles SetScript & RunScript? |
Date: |
Thu, 06 May 2004 11:21:12 +0200 |
Steve Wray wrote:
> editfiles:
> { /home/testdir/testfile
> SetScript "/usr/local/bin/testscript.sh"
> RunScriptIfLineMatching "first"
> }
[...]
> and /home/testdir/testfile contains only;
>
> <filecontent>
> first second third
> </filecontent>
Your first line does not match your pattern "first". It would match if
you used "first.*". Remember, cfengine checks whether the complete line
matches, not just a substring.
Alex
--
Alexander Jolk / BUF Compagnie
tel +33-1 42 68 18 28 / fax +33-1 42 68 18 29