ftp 下载最近一小时的文件
#!/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
时来天地皆同力,运去英雄不自由
#!/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