i have one third party application which generates its own environment variables and inherits its parent ENV variable. this third party application can also run perl code. my perl code and the application s/w runs independently and i need to access some of the env variables generated by application s/w. but i was unable to get the env vars generated by appln s/w from my perl code. is there a way in perl to get the env variables generated by appln s/w may be by giving porcess ID or appln name?
note that the env vars created by appln s/w keeps changing.
i found one work around method by writing those env vars to a file from the appln s/w and then source it on my perl code. the problem with this is, the nature of the var keeps changing and i have created a button so it changes the value. is there a way to run another perl code automaticaly when the file gets generated at perticular location? in other words from my perl code i need to run another perl code ONLY when one perticular file gets generated at perticular location? I am running on windows XP and i need to run this code both on Win XP and RHEL 5

In reply to Getting environment variable of a process by shreedarasp

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.