[Top][All Lists]

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

Re: process substitution

From: Ralf Goertz
Subject: Re: process substitution
Date: Thu, 15 Oct 2009 14:38:24 +0200
User-agent: KNode/0.10.9

Marc Herbert wrote:

>> On Mon, Oct 12, 2009 at 1:14 PM, Ralf Goertz
>>> is it possible to have a process substitution with both input and
>>> output redirection? So far I use the following work-around
>>>> cat parentprocess.sh:
>>> #!/bin/bash
>>> mkfifo fifo 2>/dev/null
>>> exec 5> >(./subprocess.sh > fifo)
>>> exec 6< <(cat < fifo)
> I think "exec 6<fifo" is enough here?

Yes, I am guilty of „uselessly using cat“. As an apology I might add
that I was thinking in terms of *process* substitution.
> socat is very flexible, below is only one of the ways to do it.

Thanks for that. This is indeed a very powerful program. I'll take it
into consideration although I am quite tempted to upgrade to bash4 now
after learning that coproc is exactly what I had in mind.

reply via email to

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