Sorry for the missing code setting up the FIFO- it was late and I was confused. To better explain my goal:
  1. I execute a 3rd party program with an argument/parameter file='foo.bar'.
  2. The 3rd party program looks in /tmp/data for the file, '/tmp/data/foo.bar'.
  3. I need the contents of foo.bar to include the string 'ini=foo.bar.csv',yet the remaining 99% of the very large config file is the same.
  4. I know I can write the file /tmp/data/foo.bar before calling said 3rd program; however, I want the least amount of disk i/o and space if this is working with lots of files even on a ramdisk, so I thought of symlink as less overhead.
  5. I thought a named pipe/FIFO or socket would know the name of the file being read and output according to a special var for the "name of the sym link that points to the process that acts like a file".
  6. I was hoping a perl process could take over a directory and any file read attempted on that directory would call a process or communicate the name of file accessed and the contents for read would be dynamic based on the file name requested.
  7. The 3rd party program I have not control short of the file passing to it. Perhaps FUSE or otherwise is the answer instead of PERL?

In reply to Re: Named Pipe, Linking to It and Knowing the Name of the Link by adcoment
in thread Named Pipe, Linking to It and Knowing the Name of the Link by adcoment

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.