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

RE: Complete FTP session from a CL program



Sender: "Angela Wawrzaszek" <awawrzaszek@xxxxxxxxxxxxxxx>

YES!   Will it handle not just as/400 to as/400 but as/400 to another
server?

-----Original Message-----
From: Buck Calabro [mailto:Buck.Calabro@xxxxxxxxxxxx] 
Sent: Tuesday, August 12, 2003 1:15 PM
To: ftpapi@xxxxxxxxxxxxx
Subject: 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
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------