File creating in another path.. application unable to locate

I am submitting a concurrent program (of HOST tyme) from Oracle apps screen,
The MAIN shell program submits another program, (child) which is also a Shell program. The child writes data to log file. Now the main program, read the log and do some calculations and sends the data to user through mail.

Now the problem is -
Main program is unable to locate the log file.

Reason:
The unix server has 2 nodes. File can be created in any of the 2 nodes, now my program should search file the file in this 2 nodes and get its path.. so that i can go to that path and read the file.

Example :
/server1/node1/xyz.txt
/server1/node2/

my file is created in node1.. but my application is searching for the file in node2.
Now i have to change the logic.. so that in which ever node the file is created, i should be able to get it and do my task. Please help..

search the txt file in both node1 and node2

/server1/node[12]/xyz.txt

or folder name begin with node

/server1/node*/xyz.txt