【问题标题】:How to issue commands in Luasocket FTP如何在 Luasocket FTP 中发出命令
【发布时间】:2016-01-30 23:30:47
【问题描述】:

下午好,

我目前正在编写一个 Lua 脚本,以通过 FTP 将 JCL 上传到 IBM 大型机 (z/OS)。
在上传我的 JCL 之前,我首先必须发出命令 site filetype=jes 以连接到 JESPLEX。
如果有人能告诉我如何通过 Luasocket FTP 执行命令,我将不胜感激。
谢谢您的帮助!

史蒂芬

【问题讨论】:

    标签: lua luasocket


    【解决方案1】:

    command command 我看不到documented,但它采用与getput 命令相同的参数。鉴于examples in the package,这样的事情应该可以工作:

    ftp.command({
      url = "ftp://luasocket:wrong@".. host,
      command = "site",
      argument = "filetype=jes",
    })
    

    【讨论】:

      猜你喜欢
      • 2023-03-20
      • 1970-01-01
      • 2010-09-17
      • 2015-09-24
      • 1970-01-01
      • 1970-01-01
      • 2015-12-21
      • 2021-01-13
      • 2012-05-12
      相关资源
      最近更新 更多