Thanks zaxxon for your reply
I am getting correct output for
ls /home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02108.DAT.Z
and if I am executing
uncompress `cat tmp`
from command window it is running fine but when i am using this statement in script it is showing me error, so do you have any idea what may be the cause ??
Ah ok, different situation then. It seems that it can't find tmp which should be either used with absolute path or your script has to be executed from the directory level above tmp so that it could be found.
/home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02108.DAT.Z
/home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02109.DAT.Z
/home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02110.DAT.Z
/home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02111.DAT.Z
/home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02112.DAT.Z: A file or directory in the path name does not exist.
Is this a directory where the files are often moved, renamed or deleted etc., ie. is there a lot of "traffic" in it?
Is there a filename already in the list "tmp" when it is not already existent in the folder?
Next time you issue uncompress ... , try following and post it's output:
VAR=/home/vas/aqbatch/newbatch/archive/output
cat tmp
echo '-----------------'
ls -la $VAR
echo '-----------------'
uncompress `cat tmp`
echo '-----------------'
ls -la $VAR