Hello again,
I'm still working on the lftp Solaris to MVS/zOS mainframe problem
that I documented here:
http://www.mail-archive.com/lftp%40uniyar.ac.ru/msg02877.html
While I've tried tons of stuff since then, the main thing I have
learned is from analyzing the snoop/tcpdump output using the Sun ftp
client (which works) and comparing that to the same command sequence
using lftp (which doesn't work).
Looking at the 2 sessions using Ethereal, the problem seems to be one
of quoting (lftp seems to not preserve the quotes I include when I do
cd 'PD.ABCFILES.FTP). When I use Sun's FTP to cd to the prefix/dir,
I see
CWD 'PD.ABCFILES.FTP' \r\n
in Ethereal, with the next line thus correctly returning:
250 "PD.ABCFILES.FTP." is the working directory name prefix.\r\n
but when I do the same command via lftp I instead see
CWD PD.ABCFILES.FTP\r\n
With the quotes missing from the above, the next line thus returns:
250 "AAFTPA.PD.ABCFILES.FTP." is the working directory name prefix.\r\n
In other words, the failure to quote the prefix causes subsequent
operations to append the userID/prefix.
So for now I have been playing around with feeding the mainframe
commands directly via the quote command. Haven't gotten "ls" or
"get" working yet but the mainframe returns the correct prefix
(without the AAFTPA. prefix) name. Still even if I ever do get it
working via the quote command, I'd rather get lftp to work with the
mainframe.
Therefore, do any of you have any ideas on somehow either making the
lftp program less smart/fancy in it's quoting or change it's quoting
mechanism so that the ' ' that I put around 'PD.ABCFILES.FTP' when I
use "cd" is preserved? When using either command I normally do
cd 'PD.ABCFILES.FTP'
This work's for the Sun ftp client, fails with lftp. I have also
tried other permutations with a double //, without any quotes, with
"", etc. but the above is what works with Sun's ftp.
Any help you can offer would be greatly appreciated as I am at a standstill.
thanks,
Bloom