#!/bin/bash
#cd /home/ftptmp/
ftp -v -n 192.168.0.100 2121 <<EOF
user test 2009
binary
cd OUTBOX
prompt
find ./ -mmin -60|xargs -i mget {}
cd ..
cd INBOX
put test.txt
close
bye
EOF
转载于:https://www.cnblogs.com/gaoyuechen/p/8596264.html
#!/bin/bash
#cd /home/ftptmp/
ftp -v -n 192.168.0.100 2121 <<EOF
user test 2009
binary
cd OUTBOX
prompt
find ./ -mmin -60|xargs -i mget {}
cd ..
cd INBOX
put test.txt
close
bye
EOF
转载于:https://www.cnblogs.com/gaoyuechen/p/8596264.html