Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Porting a system 5 streams app to linux

by rg0now (Chaplain)
on Apr 29, 2005 at 19:29 UTC ( #452727=note: print w/ replies, xml ) Need Help??


in reply to Porting a system 5 streams app to linux

What you describe here is a pretty strange sementics, at least for me, socialized on Linux. As far as I can understand you, you require that two or more processes write to the same pipe and the other side, by some miraculous way, can still distinguish between the senders of data. I do not know any facilities on Linux that can provide this to you (but I did not know about sysV streams either, before reading your post, so I might not be relevant here).

However, for me it seems that the only cause you want to do that is to be able to use a C program further, just for the purpose of logging. I know that you might not like this recommendation, but why not get rid of the C program then, and just use some native Perl logging facility, like log4perl? This may save you serious headaches in the long run -- at least, for me it did...:-)


Comment on Re: Porting a system 5 streams app to linux
Re^2: Porting a system 5 streams app to linux
by suaveant (Parson) on Apr 29, 2005 at 20:30 UTC
    Hehe... obviously I did not explain well... We want to get rid of the C program and turn it into Perl, I was just curious if there were other options that I was not thinking of to do the logging/IPC. Though I ran a mockup with INET tcp that ran about 7000 lines a second, so I think we are all set. I will look at log4perl, however. Thanks!

                    - Ant
                    - Some of my best work - (1 2 3)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-07-12 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls