Hi,
In my script i need to output the STDOUT and STDERR messages to a log file.
my code is as below.
------------------------------------------------------------------------
LogDate=`date "+%Y%m%d"`
LogDirectory=`grep -w LogDirectory ${ParameterFile}|cut -d "=" -f2`
LogFileName="${LogDirectory}/${LogDate}.txt"
exec >${LogFileName}
exec 2>${LogFileName}
------------------------------------------------------------------------
When i run the script it is giving the error as
A file or directory in the path name does not exist.
script.sh[64]: /projects/logs/20081113.txt: 0403-005 Cannot create the specified file.
I have access to create the files in /projects/logs location. I tried manually by creationg the files and sucessfull. But when i try to create a log file by running the script it is giving the error.
Any ideas please?
Thanks,
Raamc.