> I'd suggest that the "-v" option hide passwords. If they need to be revealed for debugging
As a work around, I've changed the elogd startup script to do:
/usr/local/sbin/elogd -v -c /usr/local/elog/elogd.cfg 2>&1 | perl -ne '$|=1; if ( $_ =~ /name="upassword"/
) {<>; <>;} else { print "$_";}' > /var/log/elog 2>&1 &
That simply throws away lines that match the pattern:
name="upassword"
and the following 2 lines (the last of which contains the password). |