Cfengine captures both streams stdout+stderr by default. But if you redirect it using your own control over shell, it cannot do so. You might have to use "2>&1" etc, espcially is you are using pipes
M On Tue, 2005-06-14 at 11:44 +0200, Predrag Zecevic - Solaris System Administrator wrote: > Sorry if this have created confusion! > What I am really meant is > 'how to pass stderr messages from shell back to human IF shell is ran > by cfengine'? > > Regards ;-) > > Mark Burgess wrote: > > >Cfengine does not write to stderr > > > >M > > > >On Tue, 2005-06-14 at 09:43 +0200, Predrag Zecevic - Solaris System > >Administrator wrote: > > > > > >>Hi, > >> > >>I cannot recall that somebody mentioned this problem: > >> > >> * suppose that I have cfengine conf file which has rules for > >> modifying some application conf file (editfiles section, and for > >> example httpd.conf) > >> * after editing httpd.conf file, normal action would be to restart > >> apache (shellcommands section) > >> * and it looks like it doesn't meter if I pass '-x' switch to shell > >> (/etc/init.d/apache file) or not: I will always get same output > >> from cfengine restart (Inform=On) > >> > >>Question is how to get stderr out from cfengine? > >> > >>BTW: version 2.1.11/RHES3 > >> > >> > >> > _______________________________________________ Help-cfengine mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-cfengine
