I am blind now...

There are [ code ] and [ /code ] tags to help display code properly.
Quote:
|
cp: cannot set the permission bits on product/dms300/preproc/input/67/U080823050069OCC: No such file or directory
|
You should echo your variables and check if the paths etc. are correct, for example those two for your copy here:
Code:
cp $line $lindir