2

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

1 Answers1

1

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",
})
Paul Kulchenko
  • 25,884
  • 3
  • 38
  • 56