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 <[email protected]>:
>
> 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 <[email protected]>
> To: [email protected]
> Cc: [email protected], 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 <[email protected]>:
>> grep -q
>>
>>
>> -----Original Message-----
>> From: [email protected] 
>> [mailto:[email protected]] On Behalf Of JIM AMANATIDIS, 
>> BLOOMBERG/ 731 LEXIN
>> Sent: Tuesday, October 26, 2010 3:49 PM
>> To: [email protected]
>> 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
>> [email protected]
>> https://cfengine.org/mailman/listinfo/help-cfengine
>> _______________________________________________
>> Help-cfengine mailing list
>> [email protected]
>> https://cfengine.org/mailman/listinfo/help-cfengine
>>
>
>
>
> --
> SY, Seva Gluschenko.



-- 
SY, Seva Gluschenko.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to