#!/bin/bash
echo "script start at " `date "+%Y-%m-%d %H:%M:%S"`
for site in "192.168.1.2" "192.168.1.3"
do
echo $site
/usr/bin/lftp << EOF
open ftp://username:password@$site
get something -o localfilename
.... other get .................
EOF
done
echo "script end at " `date "+%Y-%m-%d %H:%M:%S"`
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!