亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3466 | 回復(fù): 1
打印 上一主題 下一主題

perl腳本執(zhí)行ftp,AIX7和suse10操作系統(tǒng)傳輸碼制問題? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2014-04-24 14:31 |只看該作者 |倒序瀏覽
以下perl腳本執(zhí)行ftp到服務(wù)端(AIX7)獲取文件,bin寫在login前面了,語法是否正確? 若不正確,是不是到AIX上默認用bin下載?
  1. my $ftp = Net::FTP -> new ( $ftpServerIP );
  2. if ( defined($ftp) && $ftp )
  3. {
  4.         $ftp -> binary();
  5.         $ftp -> login( $ftpServerUserName, $ftpServerPassword );
  6.         $ftp -> cwd( $ftpServerFilePath );
  7.         $ftp -> pasv(); # passive mode
  8.         @ftpServerFileList = $ftp -> ls($ftpServerFilePattern);

  9.         foreach my $ftpServerFileName (@ftpServerFileList)
  10.         {
  11.                 if( $ftpServerFileName =~ /$todayYMD/ )
  12.                 {
  13.                         print "Debug: Get File Name From CCF Server: $ftpServerFileName .\n";
  14.                         $ftp->get("$ftpServerFileName");
  15.                 }
  16.         }
  17.         $ftp -> quit;
  18. }
復(fù)制代碼
同樣perl腳本ftp到服務(wù)端(suse10)獲取文件是不是默認用asc下載?

論壇徽章:
78
雙子座
日期:2013-10-15 08:50:09天秤座
日期:2013-10-16 18:02:08白羊座
日期:2013-10-18 13:35:33天蝎座
日期:2013-10-18 13:37:06獅子座
日期:2013-10-18 13:40:31雙子座
日期:2013-10-22 13:58:42戌狗
日期:2013-10-22 18:50:04CU十二周年紀念徽章
日期:2013-10-24 15:41:34巨蟹座
日期:2013-10-24 17:14:56處女座
日期:2013-10-24 17:15:30雙子座
日期:2013-10-25 13:49:39午馬
日期:2013-10-28 15:02:15
2 [報告]
發(fā)表于 2014-04-24 15:01 |只看該作者
http://search.cpan.org/~shay/libnet-1.25/Net/FTP.pm

The protocol also defines several standard translations which the file can undergo during transfer. These are ASCII, EBCDIC, binary, and byte. ASCII is the default type, and indicates that the sender of files will translate the ends of lines to a standard representation which the receiver will then translate back into their local representation. EBCDIC indicates the file being transferred is in EBCDIC format. Binary (also known as image) format sends the data as a contiguous bit stream. Byte format transfers the data as bytes, the values of which remain the same regardless of differences in byte size between the two machines (in theory - in practice you should only use this if you really know what you're doing).
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP