[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ambiguosity in iterating over list
From: |
Mark . Burgess |
Subject: |
Re: Ambiguosity in iterating over list |
Date: |
Thu, 1 Aug 2002 10:16:03 +0200 (MET DST) |
On 8 Jul, Jacob Lee wrote:
> This is a minor documentation issue, but it did send me down the wrong
> path for a little while.
>
> The tutorial says that iteration can be used in the following contexts:
> * in the `to' field of a multiple link action,
> * in the `from' field of a copy action,
> * in the directory field of a tidy action,
> * in the directory field of the files action,
> * in the ignore action,
> * in a shell command.
>
> And the reference manual says:
> * in the `to' field of a multiple link action,
> * in the `from' field of a copy action,
> * in the directory field of a tidy action,
> * in the directory field of the files action,
> * in the ignore action.
>
> It has been my experience that iterating over a list does not work in
> the shellcommands section, contrary to the tutorial's statement. This
> led me to try to do "/sbin/chkconfig --level 2345 $(services_on)" where
> services_on looks like "cups:ssh:cfenvd...(etc)". Creating a separate
> shell script did fix the problem, but it still would be good to update
> the tutorial.
>
> Thanks
>
This works for me:
control:
actionsequence = ( shellcommands )
# Split = ( " " )
test = ( "a:b:c:d" )
shellcommands:
"/bin/echo GET $(test)"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Ambiguosity in iterating over list,
Mark . Burgess <=