On Tue, Mar 21, 2006 at 10:10:33AM -0500, Brian E. Seppanen wrote:
> /dev/null.   So that is the first question.    how can I take output from 
> the command passed to ReturnsZero and send it to /dev/null?
Create a small script that runs the getent and redirects the
result to /dev/null, but preserves the return code. Call that
from ReturnsZero.

> The second question is:   Does someone know of an easier way of testing 
> for the existence of a user that wouldn't require a call to getent? 
> Just wondering if there is a better solution out there.
Perhaps testing for a home directory? getent is probably the
most reliable, if you can always assume it is present.

-Jason Martin
-- 
I'd love to go out with you, but I have to floss my cat.
This message is PGP/MIME signed.

Attachment: pgp6l4VqHUNrP.pgp
Description: PGP signature

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to