Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Passing Data Between Perl Programs

by jmmitc06 (Beadle)
on Jul 05, 2013 at 05:00 UTC ( #1042585=note: print w/replies, xml ) Need Help??

in reply to Re: Passing Data Between Perl Programs
in thread Passing Data Between Perl Programs

Not exactly but thanks, I know about piping I'm wanting to have two programs running concurrently, program 1 generating data and passing it to the already running program 2 where something is done to it. The inter process communication module mentioned above does what I was looking for. Thanks though

  • Comment on Re^2: Passing Data Between Perl Programs

Replies are listed 'Best First'.
Re^3: Passing Data Between Perl Programs
by Preceptor (Deacon) on Jul 07, 2013 at 19:38 UTC

    If it's a linear feed, you can probably use a FIFO pipe (assuming Unix, I don't know how easy it is on Windows). man mkfifo. Basically it's a file that exists purely as a place for ... well, once process to feed into and another to read out of. You use it by (once making it) by simply having one process open it for writing, and the other for reading.

      Thanks for the reply and sorry it took so long to respond, very busy at work. Yeah, I'm in unix and I used your approach and got it working in some test programs. It appears to do what I need and is a good alternative to IPC modules.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042585]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2018-04-26 14:22 GMT
Find Nodes?
    Voting Booth?