help-cfengine
[Top][All Lists]
Advanced

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

Re: methods and scripts


From: Brendan Strejcek
Subject: Re: methods and scripts
Date: Thu, 15 Apr 2004 18:53:11 -0500
User-agent: Mutt/1.3.28i

Tim Nelson wrote:

> Mark, is there a way to do here-documents as input to
> shellcommands?  eg, something like:

I think I posted this before...

shellcommands:

    debian_unstable_mta.!debian_unstable_mta_postfix_user::

        # add a postfix user; sed allows indentation preservation
        #"/bin/cat <<'            EOF' | sed 's/^ *//' | EDITOR=ed vipw
        "/bin/sed 's/^ *//' <<'            EOF' | EDITOR=ed vipw
            /^\+/
            -
            a
            postfix:x:1000:1000::/var/spool/postfix:/bin/false
            .
            w
            q
            EOF"




reply via email to

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