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