File creating in another path.. application unable to locate


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting File creating in another path.. application unable to locate
# 1  
Old 04-30-2011
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..
# 2  
Old 04-30-2011
search the txt file in both node1 and node2
Code:
/server1/node[12]/xyz.txt

or folder name begin with node
Code:
/server1/node*/xyz.txt

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

The application was unable to start correctly(0xc0150002).

Dear Team, please help me on the issue "The application was unable to start correctly(0xc0150002).click ok to close the application" Have created the build using installshield 2012. dll was generated from VS2008. Used 3rd party libraries.Included all the libraries,dll. This was the first tme... (1 Reply)
Discussion started by: SA_Palani
1 Replies

2. Shell Programming and Scripting

Unable to locate Perl

Hi, On my server : Linux mymac 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux I tried to load successfully the Perl module inside my Apache by adding the following in my httpd.conf LoadModule cgid_module modules/mod_cgid.so Restarted... (0 Replies)
Discussion started by: mohtashims
0 Replies

3. Red Hat

How to create PATH for a application?

hi every one In linux, how to create a PATH for a application ? i searched, but no positive response any one like me got stuck with this problem? (3 Replies)
Discussion started by: rajeshz
3 Replies

4. Programming

creating an application with gui in linux

hi, so I am familiar with visual studio for windows, I was wondering if there's that kind of IDE for linux that I can use to make an application... thanks! (2 Replies)
Discussion started by: h0ujun
2 Replies

5. Shell Programming and Scripting

Unable to run application using ssh

I'm testing a C++ based application (HLR) in my solaris system. Whenever i start the application remotely from some other solaris server using ssh command the application throws an error and goes down. command i used: ssh root@192.168.151.77 "./start_hlr.sh" Below is the error observed : ... (1 Reply)
Discussion started by: Arun_Linux
1 Replies

6. Shell Programming and Scripting

a little help with find and directory path for application

Just a little backgroud, I have a library of mp3 files in the following structure: /mp3/artist/album/track.mp3 Also contained in each album directory is a cover.jpg which contains the cover art file for that particular album. I want to add the cover.jpg to the mp3 tag and have been using... (8 Replies)
Discussion started by: barrydocks
8 Replies

7. Programming

unable to create phonon application on Qt

Hi I am new to QT.I am running Qt 4.7 on Fedora 9.My Application crashes with the the following statements. on execution of return app.exec(); The inferior stopped because it received a signal from the Operating System. Signal name : SIGSEGV Signal meaning :Segmentation fault:wall: ... (2 Replies)
Discussion started by: sruthihsr
2 Replies

8. Solaris

Locate NFS "not responding still trying" application on client

At times I have unknown applications that hang for long periods of time over and over again after a network glitch. These are sometimes nfs4 but usually nfs3 clients and are always solaris10 systems. nfs: NFS server hostname not responding still trying nfs: NFS server hostname ok nfs: NFS... (1 Reply)
Discussion started by: HPAVC
1 Replies

9. Shell Programming and Scripting

Locate file and path

Hi, I am writing a script to manage my server a bit better, but want to make it so if a path changes I dont need to update the script. I was thinking of doing something like if then echo -e "psa/admin/sbin located " else echo "no luck chump" fi but would need to... (2 Replies)
Discussion started by: foz
2 Replies
Login or Register to Ask a Question