I am trying to transfer multiple files from one machine to another using a shell script. Below is my script: -
ftp -nv <<EOF
open home.machine.com
user remote monday
binary
mput *.txt
bye
<<EOF
Now the problem is that it hangs between them, but when I try to execute each command on the command line. after execution, mput *.txtit asks for confirmation for each file when I enter yes, then moves on to the next file and asks again.
Am I missing something?
Thank.
source
share