[Wellington-pm] pass-through pipe?
Lenz Gschwendtner
lenz at gschwendtner.eu
Sat Jul 17 22:06:38 PDT 2010
you mean something other than one process prints to STDOUT and the other one reading from STDIN ...
not sure i get your question right but if you need something other than the normal stuff then you might be after a FIFO buffer? shared memory? what is the use case? probably that helps :-)
cheers
lenz
On 18/07/2010, at 4:30 PM, Richard Hector wrote:
> Hi all,
>
> My question may well be unclear, because I may not understand the
> problem.
>
> I want to pipe the output of one command to the input of another - stuff
> that's commonly done in the shell.
>
> I could for example, use
> system 'ls | sort';
>
> but that, as I understand it, involves starting a shell.
>
> It seems that it is cleaner, more efficient, and perhaps more secure,
> though, to do such things as piped opens entirely within perl.
>
> Is it possible to create an (unnamed) pipe to which I can connect both
> processes, leaving perl out of the loop until the end? It would probably
> be useful to be able to collect standard error and exit status from
> each.
>
> Thanks,
> Richard
>
>
> _______________________________________________
> Wellington-pm mailing list
> Wellington-pm at pm.org
> http://mail.pm.org/mailman/listinfo/wellington-pm
More information about the Wellington-pm
mailing list