FTP SHELL小脚本
时间:2007-08-24 来源:tchmuzi
#!/bin/sh
if [ $# -eq 0 ]; then
echo "please input date parameter [YYYYMMDD] "
exit 0
fi
Localdir=`/report/bosscomm/tad_busi`
ftp -in 10.0.0.1<<EOF
user report report
as
bin
lcd $Localdir
cd /homeback/report/bosscomm/tad_busi/$1
mget *.Z
bye
EOF
if [ $# -eq 0 ]; then
echo "please input date parameter [YYYYMMDD] "
exit 0
fi
Localdir=`/report/bosscomm/tad_busi`
ftp -in 10.0.0.1<<EOF
user report report
as
bin
lcd $Localdir
cd /homeback/report/bosscomm/tad_busi/$1
mget *.Z
bye
EOF
相关阅读 更多 +