Re: wget and VMS

2001-08-13 Thread Jan Prikryl

> I've recently upgraded from wget-1.5.3 to wget-1.7 and now
> cannot download files from OpenVMS via ftp.
> My home directory at VAX is USERB2:[SYS] and file I need is in
USERB4:[RA].
> wget-1.5.3 can download it with this command:
>
> export WGETRC=authfile # here are my username and password
> wget ftp://host/../userb4/ra/filename
>
> Now, with wget-1.7 this does not work, wget tries to CWD to nonexistent
> directory [userb4.ra] instead of userb4:[ra] and fails.
> What is correct syntax now?

Your syntax is the correct one. It's just that the current version has a new
part that was written specifically to deal with VMS and that does not
suppose you need to ditinguish between different disks on the machine - I
will have to have a look what the URL specification says in this case as my
feeling is that there is no way of specifying things like
"C:/directory/file" or "USERDISK:[DIRECTORY.FILE]" given the current URL
form. Let's hope I'm wrong ...

--jan




wget and VMS

2001-08-13 Thread Eugene Grosbein

Hi!

I've recently upgraded from wget-1.5.3 to wget-1.7 and now
cannot download files from OpenVMS via ftp.
My home directory at VAX is USERB2:[SYS] and file I need is in USERB4:[RA].
wget-1.5.3 can download it with this command:

export WGETRC=authfile # here are my username and password
wget ftp://host/../userb4/ra/filename

Now, with wget-1.7 this does not work, wget tries to CWD to nonexistent
directory [userb4.ra] instead of userb4:[ra] and fails.
What is correct syntax now?

Please CC: me when replying. Thank you.
Here is a debug log:

DEBUG output created by Wget 1.7 on freebsd3.5.

parseurl ("ftp://host/../userb4/ra/MTS_28JUJ01.RBF";) -> host
host -> ftp_type I -> opath ../userb4/ra/MTS_28JUJ01.RBF -> dir
../userb4/ra -> file MTS_28JUJ01.RBF -> ndir /userb4/ra
newpath: %252Fuserb4/ra/MTS_28JUJ01.RBF
Using `.listing' as listing tmp file.
--17:47:24--  ftp://host/%2Fuserb4/ra/MTS_28JUJ01.RBF
   => `.listing'
Connecting to host:21... Created fd 4.
connected!
Logging in as SYS ... 
220 HOST FTP Server (Version 3.3) Ready.
--> USER SYS

331 Username SYS requires a Password.
--> PASS Turtle Power!
230 User logged in.
--> SYST

200 VMS VAX/VMS V6.1 on node HOST
--> PWD

257 "USERB2:[SYS]" is current directory.
Preprocessing the initial VMS directory
  old = 'USERB2:[SYS]'
  new = '/SYS'

--> TYPE I

200 TYPE set to IMAGE.
changing working directory
Changed file name to VMS syntax:
  Unix: '/userb4/ra'
  VMS: '[userb4.ra]'
--> CWD [userb4.ra]

550 Failed to set default directory to [userb4.ra]

No such directory `/userb4/ra'.

Closing fd 4
unlink: No such file or directory

Eugene Grosbein