FTP List , DownLoad , Upload Test by CURL

[指定 某個 IP 為 Source IP. 結果輸出 檔案 ?xresult.log]
curl --max-time 30 -w \r\nAVG_SPEED:%{speed_download}\r\n -u alan:pass "ftp://ftpserver/dl.bin" -O > Rxresult.log 2<&1 curl --max-time 30 -w \r\nAVG_SPEED:%{speed_upload}\r\n -T dl.bin --ftp-create-dirs -u alan:pass ftp://ftpserver/SPDTEST/ > Txresult.log 2<&1 [Default IP. stdio output] curl --max-time 30 -w \r\nAVG_SPEED:%{speed_download}\r\n -u alan:pass "ftp://ftpserver/dl.bin" -O curl --max-time 30 -w \r\nAVG_SPEED:%{speed_upload}\r\n -T dl.bin --ftp-create-dirs -u alan:pass ftp://ftpserver/SPDTEST/ [Default IP. stdio output] 只列 檔名 curl -u alan:pass "ftp://ftpserver/" --list-only curl -u alan:pass "ftp://ftpserver/SQLLOG/Capture/" --list-only 去 掉 --list-only 會 列出 所有 目錄 含detail information. curl -u alan:pass "ftp://ftpserver/" curl -u alan:pass "ftp://ftpserver/SQLLOG/Capture/" 去 掉 --list-only 會 列出 所有 目錄 含detail information. curl -u alan:pass "ftp://ftpserver/" > ftplist.log 2<&1 curl -u alan:pass "ftp://ftpserver/SQLLOG/Capture/" -o ftplist.log curl -u alan:pass "ftp://ftpserver/SQLLOG/Capture/20080701/" > ftplist.log 2<&1

P.S:目錄最後一定要加上 "/"

留言

這個網誌中的熱門文章

隱藏檔案 及 將已註冊完的軟體取消註冊

notepad++ for procomm plus

ARP