【发布时间】:2018-08-02 10:29:28
【问题描述】:
如标题所述,我想登录ftp 服务器并使用ftp 命令运行本地FTP 命令文件,该命令将通过php 执行。我过去曾这样做过,但使用 sftp 而不是 ftp。
我想实现类似于我为sftp 所做的以下事情:
sftp -b commands.txt user@host
commands.txt 文件包含要在服务器中运行的ftp 命令(例如mget)
【问题讨论】:
如标题所述,我想登录ftp 服务器并使用ftp 命令运行本地FTP 命令文件,该命令将通过php 执行。我过去曾这样做过,但使用 sftp 而不是 ftp。
我想实现类似于我为sftp 所做的以下事情:
sftp -b commands.txt user@host
commands.txt 文件包含要在服务器中运行的ftp 命令(例如mget)
【问题讨论】:
【讨论】: