08-29-2008
19,
0
Join Date: Aug 2008
Last Activity: 5 November 2008, 3:28 PM EST
Posts: 19
Thanks Given: 0
Thanked 0 Times in 0 Posts
Hello Jim,
Its the same problem
the find query bringing the files with the total directory structure and when trying to copy them with total path as per our logic and code failing to copy entire directory struture for eg see the code and output:
CODE:
#!/bin/ksh
find $CA_OUT_PATH/*/ftp_out -type f -mtime -200 |\
while read file
do
echo "$file"$(date +"%Y%m%d%H%M") | read newfile
cp $file $CA_OUT_PATH/ftp_logs/$newfile
done
Output:
cp: cannot create /d09/out/ofad/ftp_logs//d09/out/ofad/glinf/ftp_out/glinf_xslgliaf.ftp.msg200808291526: No such file or directory