[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [reghunathpd@xxxxxxx: A Linux help ...please]
On Fri, Sep 15, 2000 at 08:37:22AM -0700, List Admin wrote:
> Q::No 1
> Is there exists any way to redirect the output of p1 , to p2 without
> disturbing p1 or p2..?
Yes. Look at java.lang.Runtime - specifically java.lang.Proces.getOutputStream.
> ( With the use of pipes p2 has to wait for the completion of p1.
> Any other way ?)
Wrong. With pipes, p1 and p2 can be doing their work concurrently.
> Q::No 2
> if I have the rights to modify p2 (Java),
> How can I consume or use the o/p of p1.
see answer 1.
> Q::No 3
> if i have the rights to modify p1 & p2,i think that sockets are usefull.
> Any other way ?
On many OSes, pipes are basically UNIX domain sockets.