help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including a colon, ':', in a variable?


From: Mark . Burgess
Subject: Re: Including a colon, ':', in a variable?
Date: Tue, 16 Jul 2002 06:13:57 +0200 (MET DST)

This works fine for me:

control:

 actionsequence = ( shellcommands )

 Split = ( " " )  # or , or ; or & of whatever

 url = ( "ftp://ftp.iu.hio.no/pub/cfengine/cfengine-2.0.3.tar.gz"; )


shellcommands:

 "/bin/echo GET $(url)"


Mark

On 15 Jul, Andreas Boschke wrote:
> Hi:
> 
> I would like to create a variable which contains a colon.
> However, by default, cfengine treats this as a list. I really don't want 
> to redefine the list separator with Split = (  ), but even has failed.
> 
> In particular, I would like to have a variable contain a URL which I 
> later use to install an RPM.
> Something like the following:
> 
> control:
> 
> URL = ( 
> "ftp://rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/package.1.0-1.i386.rpm";
>  
> )
> 
> shellcommands:
> 
>      any::
> 
>          "/bin/rpm --install $(URL)"
> 
> I appreciate any help.
> 
> Thanks,
> 
> -Andreas Boschke
> -Computer Science, UCSB
> -andreas @ cs . ucsb . edu
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]