bug-cfengine
[Top][All Lists]
Advanced

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

Re: Undocumented feature: 'shellcommands' -> inform=false


From: Mark . Burgess
Subject: Re: Undocumented feature: 'shellcommands' -> inform=false
Date: Mon, 23 Sep 2002 22:36:53 +0200 (MET DST)

I added this to pretty much all the functions, but perhaps missed
some in the dox. thanks

M


On 23 Sep, Hugo Gayosso wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Nowhere in the documentation it says that you can enable/disable
> "inform" in 'shellcommands'.
> 
> I previously had this:
> 
> shellcommands:
>    MasterfilesServers::
>       "/usr/bin/cvs -q update"  chdir=/var/masterconf
> 
> 
> with the result that even if there was nothing to "update" in the CVS
> tree, an email was sent by cfengine that looked like this:
> 
> 
> cfengine:myhost: Executing script /usr/bin/cvs -q 
> update...(timeout=0,uid=-1,gid=-1)
> cfengine:myhost: Finished script /usr/bin/cvs -q update
> 
> and this is not what I wanted.
> 
> 
> I looked on the mailing list archives, and there were at least a
> couple of persons that wanted to accomplish a similar goal (i.e. run a
> shell command but if nothing happened, no email should be sent).  The
> only answer that addressed this specific problem was pointing to use
> the 'preview' option with 'shellcommands':
> 
> http://www.cfengine.org/confdir/preview.html
> 
> 
> Well, somewhere else (I guess an email sent to the mailing list), I
> saw that somebody was using the "inform=false" in their config files,
> like this:
> 
> 
> shellcommands:
>    MasterfilesServers::
>       "/usr/bin/cvs -q update"  chdir=/var/masterconf   inform=false
> 
> 
> I decided to try it and it worked exactly as I wanted, so I think this
> is a useful feature and the fact that it is not listed in cfengine's
> reference document is a bug.
> 
> - -- 
> Hugo Gayosso
> 
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE9j2iVx2JZtTN6co8RAtFaAJ9KKZ4YySorgfVuMZvns32w+38oSACdFwFG
> XIl14WdK24ugsNOTRO/qM3Q=
> =Y+jM
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Bug-cfengine mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-cfengine



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






reply via email to

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