What is the output from the ftp "status" command while connected to the remote system.
Just type "status" at the ftp prompt.
We want to know the settings of the remote ftp server and whether they mentions globbing.
ftp> status
Connected to inetftp1.delphi.com.
No proxy connection.
Mode: stream; Type: binary; Form: non-print; Structure: file
Verbose: on; Bell: off; Prompting: on; Globbing: on
Store unique: off; Receive unique: off
Case: off; CR stripping: on
Ntrans: off
Nmap: off
Hash mark printing: off; Use of PORT cmds: on
hi 1st thing u r doing wrong is after ftp login through the "<<" operator you r trying to execute some sort of code say for loop here which is beyond the ftp session scope.
With something like 'expect', you can make ftp do more complex things, like list files with ls and, capturing the list, move them one at a time with get/put, as if you were there yourself, but with less effort. My crude flavor of expect is:
(
## shell script that watches $ftp_log for progress and generates commands
) | ftp -v $host >$ftp_log 2>&1