There are spurious trailing space characters on many lines in the script (many of which do not matter). The one on the "EOF" line is causing the main problem.
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags
```text
and
```
by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
I obtain the solution for this trouble, I removed the white space before
ftp -v -n $HOST <<-EOF and
EOF
I have one more question:
Is there any way to get �226 Transfer complete� for each transferred file (?
The ftp.log looks like that (550 Folder /name11/name12 not found ..... ):
Connected to host.com.
220 host.local X2 WS_FTP Server 7.0(12500000)
504 unknown security mechanism
504 unknown security mechanism
331 Enter password
230 User logged in
550 Folder /name11/name12 not found
200 Transfer mode set to BINARY
221 bye
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags
```text
and
```
by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
Thank You.
The UNIX and Linux Forums
---------- Post updated at 03:39 PM ---------- Previous update was at 03:36 PM ----------
ls -1 $mFile | sed 's/^/\\name1\\name1\\name3\\&/g' >> $LOGFILE.log