计算机A(假定ip为44.44.44.44)可以传输主机130.89.148.12。
ftp 130.89.148.12
Connected to 130.89.148.12.
220 ftp.debian.org FTP server
Name (130.89.148.12:debian8): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
计算机B(我的本地pc
我使用FTPClient自动从FTP服务器下载文件。我用一个模拟的FTP服务器进行了测试,一切正常。 现在,我的问题是,当我使用要从中获取文件的服务器的地址时,我得到以下错误: java.io.IOException: Unable to determine system type - response: 530 Please login with USER and PASS.
at org.apache.commons.net.ftp.FTPClient.getSystemType(FTPClient.java:2835)
at org.apache.commons.net
我真的不知道该怎么问。我可以检查一下是用HTTP还是用FTP上传文件吗?那个文件有多满..。就像进步,但不是相对的。我想做一个自动文件移动脚本。如果文件是满的..。上传100%,所以没坏。而不是我的剧本把那个文件移到另一个地方。
我可以和apache检查completeness of a file吗?
我的问题是,我的用户upload with FTP。所以我can't make a progress with ajax。
我试图检索远程ftp站点上文件的最后修改时间,如下所示:
my $ua = LWP::UserAgent->new;
my $index = $ua->get($ftp); # where $ftp contains the url to the ftp-folder of interest
print $index->decoded_content;
但是,这将按以下方式打印远程的内容:
-rw-r--r-- 1 user group size Month Date Year filename
我想让内容包括小时:分钟:秒格式化为'ls -l':
-r
我运行sudo apt-get install libffi-dev并得到以下错误:
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libffi-dev
0 upgraded, 1 newly installed, 0 to remove and 291 not upgraded.
Need to get 161 kB of archives.
After this operation, 365 kB of add
我想使用twisted作为一些基本的FTP服务器,
from twisted.protocols.ftp import FTPFactory, FTPRealm
from twisted.cred.portal import Portal
from twisted.cred.checkers import AllowAnonymousAccess, FilePasswordDB
from twisted.internet import reactor
#pass.dat looks like this:
# jeff:bozo
# grimmtooth:bozo2
p