[Discuss] cocat for linux
pw
p.willis at telus.net
Sat Jun 10 08:23:21 PDT 2006
Michael Foltinek wrote:
> Heck, ya, post the source. I think it's cool; I've had the need for
> something like that in the past, too.
>
> On 6/9/06, p.willis at telus.net <p.willis at telus.net> wrote:
>
>>
>>
>> Hello,
>>
>> Is anyone interested in a cocat utility for linux?
>> I'll post the source if it's of use.
>>
>
>
I will post the source today. As pointed out the 12 line python
program does the same thing. The program wasn't really my
interest though.
Actually what I am looking for is a way to make
the shell have a bit more parallelism. What I'd really
like to do is to be able to redirect multiple calls,
to different applications with thier args,
into one application and then do the inverse, redirecting
from one application into several applications.
ie:
app1-------------\
app2--------------\ /---------app8
app3---------------\................| app7 |......./----------app9
app4---------------/ pipe \----------app10
app5--------------/
app6-------------/
I would like to do this on one command line using the shell:
ie:
app1<arg><arg>!|app2 <arg>!|app3<arg>!|app4<arg><arg>!|\
app5<arg><arg>!|app6<arg> | \
app7 \
|* app8 |* app9<arg> |* app10<arg><arg>
That would require the redirection in the shell to be programmed
to work in parallel. Applications would also need to be aware of
the possibility of multiple input pipes coming thier way during
a single process.
Peter
More information about the Discuss
mailing list