如何在Luasocket FTP中发出命令

时间:2015-10-30 13:53:54

标签: lua luasocket

下午好,

我目前正在编写一个Lua脚本,通过FTP将JCL上传到IBM大型机(z / OS)。 在上传我的JCL之前,我首先必须发出命令<style> /* new class created */ .ms-longg { width:500px } </style> <script type="text/javascript"> $(document).ready(function(){ //removed existing class $('input[title^="State"]').removeClass('ms-long'); //add New class for that textbox $('input[title^="State"]').addClass('ms-longg'); }); </script> 以连接到JESPLEX 如果有人能告诉我如何通过Luasocket FTP执行命令,我将不胜感激 谢谢您的帮助!

斯特芬

1 个答案:

答案 0 :(得分:1)

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

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