[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP debugging



slapd -d -1 2>&1 1>/path/file
or
slapd -d -1 1>/path/file 2>&1
should also work
fd 1 is standard output, and when you don't specify a file descriptor when
redirecting, stdout (fd 1) is assumed
So it's logical after all :)

On 9 Jan 2002, Turbo Fredriksson wrote:

> >>>>> "Evaristo-Jose" == Evaristo-Jose Camarero (ECE) <Evaristo-Jose.Camarero@ece.ericsson.se> writes:
>
>     Evaristo-Jose> slapd -d -1 and all the debugging information goes
>     Evaristo-Jose> to the terminal. How can I put it in a file?
>
> slapd -d -1 > /var/log/slapd-debug.log 2>&1
>
> Means: Send STDOUT to /var/log/slapd-debug.log and send STDERR to STDOUT
>         One could think that it should be the other way around, but that
>         don't work...
>
> --
>  Turbo     __ _     Debian GNU     Unix _IS_ user friendly - it's just
>  ^^^^^    / /(_)_ __  _   ___  __  selective about who its friends are
>          / / | | '_ \| | | \ \/ /    Debian Certified Linux Developer
>   _ /// / /__| | | | | |_| |>  <  Turbo Fredriksson   turbo@bayour.com
>   \\\/  \____/_|_| |_|\__,_/_/\_\         Gothenburg/Sweden
>