|
I've got my own wrappers for the validation list APIs in the xTools... but what I really wanted was an automated way to transmit or assume the FTP user ID _and_ password were the same as the local end-user. It already assumes the user ID is the same, I just wanted the ability to do that with the password as well. -Bob Cozzi www.RPGxTools.com If everything is under control, you are going too slow. - Mario Andretti -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Haas, Matt Sent: Monday, March 21, 2005 1:36 PM To: RPG programming on the AS400 / iSeries Subject: RE: Free FTP CL Command The validation list API's are pretty easy to use. I wrote some programs and commands several years ago that you can download from http://www.ignite400.org/download/vldlsavf.zip. Matt -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Carel Teijgeler Sent: Monday, March 21, 2005 1:53 PM To: rpg400-l@xxxxxxxxxxxx Subject: Re: Free FTP CL Command Bob, Validation Lists come to mind. There are a number of APIs for those lists; I do not know how easy or cumbersome they are to use in CLPs. Of course the data have to bestored somehow, as well. It may be seen as misusing those lists, as, I assume, those are used for incoming requests in exit programmes. As this is an outgoing request it can be used. Regards, Carel Teijgeler *********** REPLY SEPARATOR *********** On 18-3-05 at 14:32 Bob Cozzi wrote: >I just finished a simple CL command that interfaces with OS/400 FTP to send >files to another AS/400. >The goal was to provide a CL-interface for sending a DB2 file via FTP, something like this: > > FTPSNDFILE RMTSYS(RESCUE.COMPUDESIGNS.NET) FILE(COZZILIB/QRPGLESRC) + > MBR(MYMBR) TOFILE(*FROMFILE) USER(BOBCOZZI) PWD(PICKLES) + > SRCFILE(RPGLAB/QFTPSRC) LOG(RPGLAB/QFTPSRC) LOGMBR(FTPLOG) > >The command generates the FTP source script and then evokes FTP to send the file. >It works fine and I'm very, very happy with it. >However. the password parameter for the remote user's password is set to >DSPINPUT(*PROMPT) which means it will display the text that is typed in, but >does not keep it when Enter is pressed. So I have to re-key it each and >every time I run the command from command entry. Obviously I could change >the source, since I wrote it, but I also don't want my passwords logged. >So here's the question that I assumed would have a NO for the answer: >Is there a way to retrieve and/or transmit a user's password for an FTP >session so that I don't have to require the end-user to enter it each time >they run the FTPSNDFILE command? I mean if they specify USER(*CURRENT) is >there a way I can also allow the PWD parm to default to PWD(*CURRENT)? >I believe there is not, but since there are just too many APIs available >today, I thought I'd throw the question it out there. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.