[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to code conditional copy
From: |
Chip Seraphine |
Subject: |
Re: How to code conditional copy |
Date: |
Thu, 15 Jan 2004 14:18:07 -0600 |
User-agent: |
KMail/1.5 |
groups:
xxx_exists = ( FileExists(/path/to/xxx) )
copy:
/masterfiles/example.xxx dest=/some/path/to/example mode=123
On Thursday 15 January 2004 10:48, Morgan Ives wrote:
> I am trying to code conditional copies based upon the existance of
> a file on each client. For example if:
>
> /.XXX exists then
> copy::
> /local/masterfiles/.example.xxx dest=/usr/local/bin/example mode=600
>
> /.YYY exists then
> copy::
> /local/masterfiles/.example.yyy dest=/usr/local/bin/example mode=600
>
> I am thinking this can be done with filters but I am having trouble with
> the syntax.
> Does anyone have a quick example of this?
>
> Morgan