Reputation: 21
Good afternoon,
i'm currently writing on a Lua-script to upload a JCL to an IBM Mainframe (z/OS) via FTP.
Before uploading my JCL, i first have to issue the command site filetype=jes
to connect to JESPLEX.
I'd greatly appreciate it if anyone could tell me how to execute commands via Luasocket FTP.
Thank you for your help!
Steffen
Upvotes: 2
Views: 452
Reputation: 26784
There is command
command that I don't see documented, but it takes the same parameters as get
and put
commands. Given the examples in the package, something like this should work:
ftp.command({
url = "ftp://luasocket:wrong@".. host,
command = "site",
argument = "filetype=jes",
})
Upvotes: 1