I never used Cfengine2 so I cannot tell you the exact difference. As a workaround, it seems to be possible either to use module script or to use shell and redirect stdout and stderr to /dev/null manually.
Seems like a good feature request, though. Mark, do you follow? Can you add something like the "silent" option to returnszero() call? 2010/10/27 JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN <jamanati...@bloomberg.net>: > > Hi, thanks for responding. The output creates noise. Under v2, output could > be redirected to /dev/null, does that functionality not exist in v3? > > ----- Original Message ----- > From: Seva Gluschenko <seva.glusche...@gmail.com> > To: marco.le...@domtar.com > Cc: HELP-CFENGINE@cfengine.org, JIM AMANATIDIS (BLOOMBERG/ 731 LEXIN) > At: 10/26 16:22:25 > > The -q switch is unavailable in Solaris's grep. It is GNU grep only, > AFAIR. Who worries of stdout in returnszero() call, anyway? > > 2010/10/26 Lebel, Marco <marco.le...@domtar.com>: >> grep -q >> >> >> -----Original Message----- >> From: help-cfengine-boun...@cfengine.org >> [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of JIM AMANATIDIS, >> BLOOMBERG/ 731 LEXIN >> Sent: Tuesday, October 26, 2010 3:49 PM >> To: HELP-CFENGINE@CFENGINE.ORG >> Subject: how to redirect to /dev/null >> >> Hi all, >> In this example: >> >> classes: >> "Is_SOL10_U1" expression => returnszero("/bin/grep s10s_u1wos >> /etc/release", "noshell"); >> >> Is there a way to redirect grep output to /dev/null? >> >> Thanks, Jim >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> > > > > -- > SY, Seva Gluschenko. -- SY, Seva Gluschenko. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine