标题: 问个FTP参数-g的问题
[打印本页]
作者: acoreq
时间: 2006-8-2 10:26
标题: 问个FTP参数-g的问题
网上说-g的作用是取消全局文件名,不是很理解,于是做了个简单的测试
下面2个例子里一个有-g另一个没有-g
有-g的可以用*通配符, 而没有-g的似乎就报错
望请达人解释 -g究竟派什么用场的,有什么实际用途吗?
ftp -i -s:1.dat <remote ftp host>
Connected to <remote ftp host>
220-Microsoft FTP Service
220 test
User (<remote ftp host>:(none)):
331 Password required for <account>.
230-test
230 User <account> logged in.
ftp> mget 1*.txt
200 Type set to A.
200 PORT command successful.
150 Opening ASCII mode data connection for 11.txt(0 bytes).
226 Transfer complete.
200 PORT command successful.
150 Opening ASCII mode data connection for 12.txt(0 bytes).
226 Transfer complete.
ftp> mput a*.txt
200 PORT command successful.
150 Opening ASCII mode data connection for a1.txt.
226 Transfer complete.
200 PORT command successful.
150 Opening ASCII mode data connection for a2.txt.
226 Transfer complete.
ftp> bye
ftp -i -g -s:1.dat <remote ftp host>
Connected to <remote ftp host>.
220-Microsoft FTP Service
220 test
User (<remote ftp host>:(none)):
331 Password required for <account>.
230-test
230 User <account>. logged in.
ftp> mget 1*.txt
Error opening local file 1*.txt.
> 1*.txt:Invalid argument
ftp> mput a*.txt
200 PORT command successful.
550 a*.txt: The filename, directory name, or volume label syntax is incorrect.
ftp> bye
作者: acoreq
时间: 2006-8-3 09:58
唉。。。不会吧。。。
作者: acoreq
时间: 2006-8-5 23:17
有人知道吗?