[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defining a class based on file contents
From: |
Yves |
Subject: |
Re: Defining a class based on file contents |
Date: |
Mon, 12 May 2003 19:57:06 +0100 |
Hello,
docu says:
access_to_dir = ( ReturnsZero(/bin/cd /mydir) )
compare = ( ChangedBefore(/etc/passwd_master,/etc/passwd) )
isplain = ( IsPlain(/tmp/import) )
so just try
myclass = ( ReturnsZero(/usr/bin/grep -i mystring /tmp/myfile) )
if you need "|" (Pipe Symbol):
myclass2 = ( ReturnsZero(/bin/sh -c '/usr/bin/hostname | /usr/bin/cut -c1-3 |
grep -i "ibm" ' )
Gruß Yves
On Mon, 12 May 2003 12:26:41 -0500, Chip Seraphine wrote:
>That's exactly what I am talking about, but without the (expensive
>and
>relatively dangerous) shellout :-)
>
>Mark pointed me at the DefineInGroup command, which is really the
>correct solution for it. I'm having problems with DefineInGroup,
>actually, but I'll be taking that up on the bugs list :-)
>
>Alan Sparks wrote:
>
Gruß Yves
Y99@gmx.de am 12.05.2003