Monks, in one of my computer there's a process running that writes data to a shared memory every second.
------ Shared Memory Segments -------- key shmid owner perms bytes nattch stat +us 0x00002f08 8585216 mikes 666 4404 56 0x00001ed7 7110657 mikes 666 8004 1 0x00001ed6 7143426 mikes 666 40404 1 0x0000232e 7176195 mikes 666 9306116 58 0x001a1fa8 8617988 mikes 666 4764 3
This code was developed by someone else in C. And I want to write a perl code/utility to read this shared memory and logs it to a file. Of course I know which shmid to connect to since there's a pattern to create it.

I'm searching to see what's the best way of doing it...any recommendations/directions?...thanx...

In reply to shared memory by rhxk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.