[Info-vax] VMS^.FTP^.mput^.to.linux

Steven Schweda sms.antinode at gmail.com
Thu Dec 29 16:28:13 EST 2011


On Dec 29, 12:31 pm, VAXman-  @SendSpamHere.ORG wrote:

> TCPIP Services does this [...]

   Which TCPIP Services does what, exactly?  Around here,
using a simple client on a convenient AIX system, for
example:

alp $ tcpip show version

  HP TCP/IP Services for OpenVMS Alpha Version V5.6 - ECO 5
  on a COMPAQ Professional Workstation XP1000 running OpenVMS V8.3


blue# ftp alp-l
Connected to alp-l.antinode.info.
220-   Antinode FTP Server.  Please be nice.
220 alp.antinode.info FTP Server (Version 5.6) Ready.
Name (alp-l:root): sms
331 Username sms requires a Password
Password:
230 User logged in.
ftp> cd itrc
250-CWD command successful.
250 New default directory is ALP$DKC0:[SMS.ITRC]
ftp> cd ftp
250-CWD command successful.
250 New default directory is ALP$DKC0:[SMS.ITRC.ftp]
ftp> mget *
mget a^.b.c;1? y
200 PORT command successful.
550-Failed to open ALP$DKC0:[SMS.ITRC.ftp]a^^^.b.c;1 for input.
550 file not found
mget a^.b^.c.d;1? y
200 PORT command successful.
550-Failed to open ALP$DKC0:[SMS.ITRC.ftp]a^^^.b^^^.c.d;1 for input.
550 file not found

   But it works with caret-free names (and plain "get"):

ftp> get a.b.c
200 PORT command successful.
150 Opening data connection for ALP$DKC0:[SMS.ITRC.ftp]a^.b.c;1
 (10.0.0.61,49742) (8 bytes)
226 Transfer complete.
7 bytes received in 0.001515 seconds (4.512 Kbytes/s)
local: a.b.c remote: a.b.c
ftp> get a.b.c.d
200 PORT command successful.
150 Opening data connection for ALP$DKC0:[SMS.ITRC.ftp]a^.b^.c.d;1
 (10.0.0.61,43034) (10 bytes)
226 Transfer complete.
9 bytes received in 0.000142 seconds (61.89 Kbytes/s)
local: a.b.c.d remote: a.b.c.d
ftp> quit
221 Goodbye.
blue#


   So far as I know, you're doomed by the lameness of the
TCPIP FTP server, which won't accept as input the names which
it sends to the client.  A recent version of Wget should have
the ability to de-caret-ize VMS file names.  For example:

blue# wget --version
GNU Wget 1.13.4 built on aix6.1.0.0.
[...]

blue# wget ftp://sms:passwd@alp-l/itrc/ftp/*
--2011-12-29 15:10:49--
ftp://sms:*password*@alp-l/itrc/ftp/*
           => '.listing'
Resolving alp-l... 10.0.0.9
Connecting to alp-l|10.0.0.9|:21... connected.
Logging in as sms ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (0) itrc/ftp ... done.
==> CWD (1) itrc/ftp ... done.
==> CWD (2) itrc/ftp ... done.
==> PASV ... done.    ==> LIST ... done.

     0K
51.0K=0.005s

2011-12-29 15:10:50 (51.0 KB/s) - '.listing' saved [272]

Removed '.listing'.
--2011-12-29 15:10:50--
ftp://sms:*password*@alp-l/itrc/ftp/a.b.c
           => 'a.b.c'
==> CWD not required.
==> SIZE a.b.c ... done.
==> PASV ... done.    ==> RETR a.b.c ... done.

     0K
252K=0s

2011-12-29 15:10:50 (252 KB/s) - 'a.b.c' saved [5]

--2011-12-29 15:10:50--
ftp://sms:*password*@alp-l/itrc/ftp/a.b.c.d
           => 'a.b.c.d'
==> CWD not required.
==> SIZE a.b.c.d ... done.
==> PASV ... done.    ==> RETR a.b.c.d ... done.

     0K
362K=0s

2011-12-29 15:10:50 (362 KB/s) - 'a.b.c.d' saved [7]


blue# ls -l a*
-rw-r--r--    1 root     system            5 Dec 29 14:38 a.b.c
-rw-r--r--    1 root     system            7 Dec 29 14:38 a.b.c.d


   That's using my VMS-compatible Wget kit, but the original
1.13.4 kit should include all the critical stuff for dealing
with a TCPIP FTP server.

   Of course, if HP ever does fix its FTP server, that will
probably break all the code like this which tries to work
around the current defects therein.  (I'm not holding my
breath.)



More information about the Info-vax mailing list