bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: output redirection with process substitution asynchronous?


From: pjodrr
Subject: Re: output redirection with process substitution asynchronous?
Date: Sat, 12 Dec 2009 06:45:52 -0800 (PST)
User-agent: G2/1.0

Hello again,

I have to reply to my own post to correct it:

On Dec 8, 2:00 pm, pjodrr <address@hidden> wrote:
> coproc prefix_timestamp
> seq 10>&${COPROC[1]}
> eval "exec ${COPROC[1]}>&-"
> cat <&${COPROC[0]}
> wait $COPROC_PID

replace this with:

{ coproc prefix_timestamp >&3 ; } 3>&1
seq 10>&${COPROC[1]}
eval "exec ${COPROC[1]}>&-"
wait $COPROC_PID

this is how i do it now, thanks for the discussion.

  Peter


reply via email to

[Prev in Thread] Current Thread [Next in Thread]