Hi,
I have a concurrent program that runs a shell script and it is unable to find the path/directory
test.prog
#!/bin/ksh
process_dir=/ebstransfer/UAT/outgoing/EDI/Process
file_dir=$(dirname $process_dir)
echo $process_dir
echo $file_dir
if [ ! -d ${file_dir} ]; then
echo "Error : File Directory ${file_dir} does not exist!"
exit 1
fi
If the file is run directly from Unix box, it works fine.
Output:
/ebstransfer/UAT/outgoing/EDI/Process
/ebstransfer/UAT/outgoing/EDI
Concurrent Program Output:
/ebstransfer/UAT/outgoing/EDI/Process
/ebstransfer/UAT/outgoing/EDI
Error : File Directory /ebstransfer/UAT/outgoing/EDI does not exist!
/u01/app/oracle/ebsut01/fs1/EBSapps/appl/xxplxs/12.0.0/bin/XXPLXS_EDI_FILE_MGMT
Program exited with status 1
I verified the utl_file_dir and it has an entry to the path "/ebstransfer/UAT/outgoing/EDI". It worked in another instances but not in UAT.
Any help is highly appreciated.
Thanks