lkml.org 
[lkml]   [2004]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 09 Mar 2004 08:04:13 -0800
FromStephen Samuel <>
SubjectRe: Redirection of STDERR
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@bcgreen.com
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [from the cache]
©2003-2010