No file method wont work. If i have not conveyed the scenario properly, here it is, when a child returns to the parent ( after execution completion ) i have to check the environment variable PROJECTNAME, and according to that i have to process in the parent.