[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Complete FTP session from a CL program



Sender: "Buck Calabro" <Buck.Calabro@xxxxxxxxxxxx>

I've wrappered a simple FTP client using FTPAPIR4 into a command so I can do a get/put from within a CL program.  Is there any interest in putting it in the project?

It looks like so:
 ===> FTPCMD DIRECTION(*RCV) HOSTNAME(AS400COM) USERNAME(buck) PASSWORD() LOCAL(
'/qsys.lib/aptgenbu1.lib/ftpapisrc.file/install.mbr') REMOTE('/qsys.lib/buck.lib
/ftpapisrc.file/install.mbr')                                                   

It has a limitation at the moment of only handling NAMEFMT 1 (*PATH) because LSTAT wants a *PATH, not LIB/FILE.MBR.
  --buck
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------