Re: [Persistentperl-users] Followup to my STDOUT issue
Brought to you by:
samh
From: Sam H. <sa...@da...> - 2003-03-13 19:11:08
|
> When I look at Step 3 on how speedy works, I see that it does not pipe STDOUT to the backend? That's true. STDOUT is sent from the backend to the frontend as output from the script. STDOUT, is not sent from the frontend to the backend for input. STDOUT is an output channel. > How am I supposed to read STDOUT from a previous pipe into my script?? With STDIN. > Like the one I posted before. I'm trying to write a filter that mail pipes through, but I dont want to invoke a perl interpreter for each email! In order to get the envelope addresses, I have to read STDOUT from the qmail-smtpd pipe to my script. That should work. In pipes, the STDOUT of the previous command (qmail in this case) becomes STDIN for the next command (your script). Should work fine. STDIN is passed by the frontend from the pipe to the backend's STDIN, the backend reads it, produces output on STDOUT, then STDOUT is copied from the backend to the frontend, where the frontend emits it on its STDOUT. |