--On Wednesday, April 02, 2008 5:07 PM -0700 Russ Allbery <[EMAIL PROTECTED]>
wrote:
It would be nice if something went to stderr in case stdout has been
redirected so an abnormal result was obvious.
This is controlled by the -L flag. -LLL will give you pure LDIF without
any additional messages and is usually what you want for scripts.
And to be very clear, ldapsearch already sends its errors to stderr:
[EMAIL PROTECTED] ~]$ ldapsearch -x -h bogus -b "" 1>a 2>b
[EMAIL PROTECTED] ~]$ cat b
ldap_bind: Can't contact LDAP server (-1)
[EMAIL PROTECTED] ~]$ cat a
[EMAIL PROTECTED] ~]$
--Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]