Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Passing Data Between Perl Programs

by jmmitc06 (Acolyte)
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
Re^3: Passing Data Between Perl Programs
by Preceptor (Chaplain) 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-08-27 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (248 votes), past polls