Deleting files

Hi all, I have developed a shell script to copy the files from source to destination and simultaneously to delete the copied files in source. I can copy the files but the files cannot be deleted in source side.

Please post your code.

How can you aspect us to help you without even seeing the code ?

files='ls filename'
for file in $files
do
ftp -vn $hostname <<EOFD
  quote USER $username
  quote PASS $password
binary
 cd $start_dir
 rm -rf $file
quit
EOFD
done