home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!bcstec!silverm
- From: silverm@bcstec.ca.boeing.com (Jeff Silverman)
- Newsgroups: vmsnet.misc
- Subject: Re: Using FTP in command files.
- Message-ID: <4262@bcstec.ca.boeing.com>
- Date: 17 Nov 92 06:36:47 GMT
- References: <BxtCBD.3K0@wm.estec.esa.nl>
- Organization: Boeing Computer Services, Seattle
- Lines: 63
-
- hevans@estwm8.wm.estec.esa.nl (Hugh D.R. Evans (ESA/ESTEC/WMA Netherlands)) writes:
-
-
- >Ok. I read the bookreader book "DEC TCP/IP Services for VMS Use" and in
- >particular section
- >4.4 Using FTP from a command procedure. It even gave an example:
-
- >FTP
- >Connect "harry"
- >LOGIN=(USER_NAME="myusername",PASSWORD=mypassword)
-
- >None of which worked. It connected fine, once the quote marks were
- >removed from around the
- >node name. The session went:
-
- >$set verify
- >$@ftp.com
- >$FTP
- >connect estwm8
- >220 ESTWM8 FTP Server (UCX Version 2.0) Ready.
- >Connected to ESTWM8.
- >LOGIN=(USER_NAME="hevans",PASSWORD=mypassword)
- >%CLI-W-PARMDEL, invalid parameter delimiter - check use of special characters
- > \=\
- >dir
- >425 Not logged in.
- >exit
- >$EXIT
-
- >So, what is going on? Does this "feature" really work or is the manual
- >ahead of the software?
-
- >Hugh.
-
- >P.S. I also tried it without the '=' and it still didn't work.
-
- I talked at length with DEC on the subject and the problem is that the manual
- documents a feature which might be implemented. I get the distinct impression
- that UCX is a product which was rushed out the door, as there
- as many bugs in the documentation, including stupid production problems. Now,
- the people who are implementing UCX are clever people - I've talked to them,
- and they're good - but the product was rushed.
-
- Anyway, suppose you wish to copy file FILE from node NODE, username USERNAME
- password PASSWORD, etc. Use the following:
-
- $ OPEN/WRITE Y SYS$SCRATCH:TEMP.COM
- $ WRITE Y "$ FTP ''node'"
- $ WRITE Y "USERNAME ''username'"
- $ WRITE Y "''password'"
- $ WRITE Y "GET ''file'"
- $ WRITE Y "$ EXIT 1 ! no way to get status"
- $ CLOSE Y
- $ @ SYS$SCRATCH:TEMP.COM
- $ DEL SYS$SCRATCH:TEMP.COM;
-
- Lousy solution, isn't it? DEC didn't implement RCP, so that's about the best
- you can do.
-
- Regards,
-
- Jeff Silverman, Boeing Commercial Airplane.
-
-