Re: Redirection of STDERR

From: Stephen Samuel
Date: Tue Mar 09 2004 - 11:06:30 EST


Christoph Pleger wrote:
Hello,

In my initialization scripts for hotplug (written for bash) the
following command is used to redirect output which normally goes to
stderr to the system logger:

"exec 2> >(logger -t $0[$$])"
I don't remember this syntax as legal.
what I'd use would be:
exec some_command 2>&1 | logger -t "$0[$$]"


On the other hand, this could replace the script you're
running with something that may never exit.. (sepending
on what the command does)


With kernel 2.4 this command works fine, but with kernel version 2.6.3
it leads to a system hang.

--
Stephen Samuel +1(604)876-0426 samuel@xxxxxxxxxxx
http://www.bcgreen.com/~samuel/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/