I have the following script:
to transfer the following files:
dfA107TULIP1.17DC dfA108TULIP1.14E0 dfA109TULIP1.13E2 dfA109TULIP1.17DE
dfA107TULIP1.1CD7 dfA108TULIP1.15DF dfA109TULIP1.14E1 dfA109TULIP1.1CD9
dfA107TULIP1.1FD4 dfA108TULIP1.16DE dfA109TULIP1.15E0 dfA109TULIP1.1FD6
dfA108TULIP1.13E1 dfA108TULIP1.1CD8 dfA109TULIP1.16DF
When I try "sh test.sh" , the mput does not work properly:
Code:
ftp -in <<EOF
open 123.456.com
user user password
bin
passive
prompt
mput *
bye
dfA107TULIP1.17DC dfA108TULIP1.14E0 dfA109TULIP1.13E2 dfA109TULIP1.17DE
dfA107TULIP1.1CD7 dfA108TULIP1.15DF dfA109TULIP1.14E1 dfA109TULIP1.1CD9
dfA107TULIP1.1FD4 dfA108TULIP1.16DE dfA109TULIP1.15E0 dfA109TULIP1.1FD6
dfA108TULIP1.13E1 dfA108TULIP1.1CD8 dfA109TULIP1.16DF
When I try "sh test.sh" , the mput does not work properly:
yet when I do it manually, it works fine:mput dfA107TULIP1.17DC? mput dfA107TULIP1.1CD7? mput dfA107TULIP1.1FD4? mput dfA108TULIP1.13E1? mput dfA108TULIP1.14E0? mput dfA108TULIP1.15DF? mput dfA108TULIP1.16DE? mput dfA108TULIP1.1CD8? mput dfA109TULIP1.13E2? mput dfA109TULIP1.14E1? mput dfA109TULIP1.15E0? mput dfA109TULIP1.16DF? mput dfA109TULIP1.17DE? mput dfA109TULIP1.1CD9? mput dfA109TULIP1.1FD6?
What do I need to do to have the script upload the files with the global mput ?ftp> bin
200 Type set to I.
ftp> passive
Passive mode off.
ftp> prompt
Interactive mode off.
ftp> mput *
local: dfA107TULIP1.17DC remote: dfA107TULIP1.17DC
200 Port command successful.
150 Opening data connection for dfA107TULIP1.17DC.
226 File received ok.
102133 bytes sent in 0.011 seconds (8.7e+03 Kbytes/s)
local: dfA107TULIP1.1CD7 remote: dfA107TULIP1.1CD7
200 Port command successful.
150 Opening data connection for dfA107TULIP1.1CD7.
226 File received ok.
103535 bytes sent in 0.049 seconds (2.1e+03 Kbytes/s)
local: dfA107TULIP1.1FD4 remote: dfA107TULIP1.1FD4
200 Port command successful.
150 Opening data connection for dfA107TULIP1.1FD4.
226 File received ok.
101967 bytes sent in 0.056 seconds (1.8e+03 Kbytes/s)
...