写一个ftp取文件的脚本,记录一下,以后可以用,放在后台跑了就可以闪人:)
vi ftp_get_file.sh
ftp -i -n 123.45.67.89 < down.log
user username password
bin
prompt off
cd ora_hp
mget p*_9206_HP64.zip
bye
FTPFILE
user username password
bin
prompt off
cd ora_hp
mget p*_9206_HP64.zip
bye
FTPFILE
授权并挂到后台执行:
#chmod 777 ftp_get_file.sh
#nohup ftp_get_file.sh &
#nohup ftp_get_file.sh &