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