1

Issue with copying files

view story
linux-howto

http://www.unix.com – Hi I have to write a shell script which copy files from one folder to another. When I try to do it directly from command prompt cp filename.dat /outgoing/filename.dat its working fine. But when I put the same command inside a shell script say test.sh its not getting copied. and when I check $? after the execution of the script it returned 0. Is there any restrictions that causes this situation. Note: as a first step in my shell script I am loading .env.sh which loads all environment details and other config details. Please help. Thanks... (HowTos)