host Specifies the host name or IP address of the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
host Specifies the host name or IP address of the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
发现 -i 参数可以去除mget的提示,经过测试,实现了如下脚本(使用了匿名登入,如果非匿名,可以修改登入脚本):
echo cd autoruns>ftp.txt
echo mget *>>ftp.txt
echo bye>>ftp.txt
ftp -i -A -s:ftp.txt 10.1.103.10不过,这只是下载了目录中的文件,如果有子目录,那还需要用dir命令输出,并转向输出到文本,用find来提取目录,如:

2023-02-27
0万阅读

2023-02-27
0万阅读

2023-02-13
18万阅读

2023-02-12
13万阅读

2023-02-12
7万阅读
2023-02-10
5万阅读

2023-01-19
4万阅读

2023-01-17
3万阅读

2023-01-14
3万阅读

2023-01-04
4万阅读

2023-02-27
0万阅读

2023-02-27
0万阅读

2023-02-13
18万阅读

2023-02-12
13万阅读

2023-02-12
7万阅读
2023-02-10
5万阅读

2023-01-19
4万阅读

2023-01-17
3万阅读

2023-01-14
3万阅读

2023-01-04
4万阅读