FTP自动下载日志脚本

FTP自动下载日志脚本SHELL #!bin/sh time=`date –date=’yesterday’ "+%y%m%d"` #time=090112 ftp -niv 211.154.*.* <<EOF user user**** passwd*** binary cd admin.szshequ.com/W3SVC1061345589 lcd /home/iislog/admin.szshequ.com/W3SVC1061345589 get ex$time.log cd ../../agent.szshequ.com/W3SVC239483299 lcd /home/iislog/agent.szshequ.com/W3SVC239483299 get ex$time.log cd ../../bbs.szshequ.com/W3SVC198587402 lcd /home/iislog/bbs.szshequ.com/W3SVC198587402 get ex$time.log cd ../../club.szshequ.com/W3SVC1671374477 lcd /home/iislog/club.szshequ.com/W3SVC1671374477 get ex$time.log cd ../../all.pp.szshequ.com/W3SVC263602624 lcd /home/iislog/all.pp.szshequ.com/W3SVC263602624 get ex$time.log cd ../../cost.szshequ.com/W3SVC1681786065 lcd [...]

你可能感兴趣的:(脚本,bbs)