Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Having child filter data that parent put in a pipe

by blreed (Initiate)
on Aug 05, 2002 at 21:40 UTC ( [id://187835]=perlquestion: print w/replies, xml ) Need Help??

blreed has asked for the wisdom of the Perl Monks concerning the following question:

When using Fork to work with pipes, can you have the child work on the data in the pipe as the parent is filling it? For instance, I'm spooling date from Oracle into the pipe and would like to FTP the data as soon as it hits the pipe. Any suggestions?

Title edit by tye

  • Comment on Having child filter data that parent put in a pipe

Replies are listed 'Best First'.
Re: Pipes
by Zaxo (Archbishop) on Aug 05, 2002 at 21:56 UTC

    You could pipe to a server process that ships the data over a tcp socket, or you could simply print the data to a file. For ftp retrieval, the file seems like the best way.

    Take a look at POE for a whole candy store full of goodies for this kind of problem.

    After Compline,
    Zaxo

Re: Having child filter data that parent put in a pipe
by fsn (Friar) on Aug 06, 2002 at 08:10 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://187835]
Approved by kvale
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found