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

Re: Is the installer broken?



OK. I have to admit that the initial attempts scrolled well past the cmd window buffer so I assumed the errors were due to the crtl crts commands. I did try swapping the namefmt from 0 to 1 and back as well (I thought I saw some errors). So, here is the initial output of the original script with none of my modifications:

ftp> quote site namefmt 0
550 Current directory requires name format 1.
ftp> quote crtl LIBHTTP
250 Library created.
ftp> quote crts file(LIBHTTP/qclsrc) rcdlen(92)
250 Command QSYS/CRTSRCPF file(LIBHTTP/qclsrc) rcdlen(92) successful.
ftp> quote crts file(LIBHTTP/qddssrc) rcdlen(92)
250 Command QSYS/CRTSRCPF file(LIBHTTP/qddssrc) rcdlen(92) successful.
ftp> quote crts file(LIBHTTP/qsrvsrc) rcdlen(92)
250 Command QSYS/CRTSRCPF file(LIBHTTP/qsrvsrc) rcdlen(92) successful.
ftp> quote crts file(LIBHTTP/qrpglesrc) rcdlen(112)
250 Command QSYS/CRTSRCPF file(LIBHTTP/qrpglesrc) rcdlen(112) successful.
ftp> quote crts file(LIBHTTP/qsh) rcdlen(124)
250 Command QSYS/CRTSRCPF file(LIBHTTP/qsh) rcdlen(124) successful.
ftp> quote crts file(LIBHTTP/qxmlgens) rcdlen(112)
250 Command QSYS/CRTSRCPF file(LIBHTTP/qxmlgens) rcdlen(112) successful.
ftp> quote crts file(LIBHTTP/expat) rcdlen(112)
250 Command QSYS/CRTSRCPF file(LIBHTTP/expat) rcdlen(112) successful.
ftp> quote crts file(LIBHTTP/qcmdsrc) rcdlen(92)
250 Command QSYS/CRTSRCPF file(LIBHTTP/qcmdsrc) rcdlen(92) successful.
ftp> cd LIBHTTP
550-Specified directory does not exist or cannot be accessed.
550 Working directory not changed.
ftp> ascii
200 Representation type is ASCII nonprint.
ftp> put EXPAT.FILE/AMIGACON.H.MBR EXPAT.AMIGACON.H
200 PORT subcommand request successful.
150 Sending file to /home/PETE/EXPAT.AMIGACON.H
226 File transfer completed successfully.

......and on and on and on.

All the files end up in my home folder and the file members do not end up in the source files.

Looks like is it choking on the "ftp> quote site namefmt 0 " command to start with (which is why I tried it both ways).

Pete Helgren
www.petesworkshop.com
GIAC Secure Software Programmer-Java

On 2/11/2015 1:40 PM, Scott Klement wrote:
Pete,

"crtl" and "crts" are shortcuts for crtlib & crtsrcpf respectively. These are built-in to the IBM i FTP server, and should work fine.

As far as I can tell, the problem you're experiencing is that your FTP session is using "namefmt 1", whereas the script was designed for "namefmt 0". You'll notice that the very first line of the script is attempting to switch to "namefmt 0", but perhaps it is failing?

It's probably failing because the FTP session starts you out in an the user's home directory or some other IFS directory that's not accessible when using "library" naming. Maybe the fix would be to have the script do something like this:
"namefmt 1", "cd /qsys.lib/qgpl.lib", "namefmt 0"

That way, it'll set your current dir to QGPL (which is a valid library) before switching to namefmt 0. I actually thought it already does this? But, I may be thinking of a different script.

Thoughts?

-SK

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------