capture output of an ldapmodify command





hello- Im encountering a strange problem Im sure Im overlooking the
problem....

i am performing an ldapmodify command on an ldif file and want to
capture the output:

IE: this is what is seen on the command line:


modifying entry: entryname
ldap_modify: object exists

modifying entry: entryname
ldap_modify: no such object

***************************************

I want that EXACT output to be piped into a file--- BUT no matter what
I do i get a file that looks like this:


modifying entry: entryname
modifying entry: entryname

ldap_modify: object exists
ldap_modify: no such object

the above occurs when i direct stderr and stdout to the same file-- so
Im assuming stdout is being reported all at once then the stderr... is
there a way I can just capture the output like you see on the screen
when running the ldapmodify command?

Thanks in advance! - Todd

.