home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / vmsnet / misc / 1017 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.1 KB

  1. Path: sparky!uunet!bcstec!silverm
  2. From: silverm@bcstec.ca.boeing.com (Jeff Silverman)
  3. Newsgroups: vmsnet.misc
  4. Subject: Re: Using FTP in command files.
  5. Message-ID: <4262@bcstec.ca.boeing.com>
  6. Date: 17 Nov 92 06:36:47 GMT
  7. References: <BxtCBD.3K0@wm.estec.esa.nl>
  8. Organization: Boeing Computer Services, Seattle
  9. Lines: 63
  10.  
  11. hevans@estwm8.wm.estec.esa.nl (Hugh D.R. Evans (ESA/ESTEC/WMA Netherlands)) writes:
  12.  
  13.  
  14. >Ok. I read the bookreader book "DEC TCP/IP Services for VMS Use" and in
  15. >particular section
  16. >4.4 Using FTP from a command procedure.  It even gave an example:
  17.  
  18. >FTP
  19. >Connect "harry"
  20. >LOGIN=(USER_NAME="myusername",PASSWORD=mypassword)
  21.  
  22. >None of which worked.  It connected fine, once the quote marks were
  23. >removed from around the
  24. >node name.  The session went:
  25.  
  26. >$set verify
  27. >$@ftp.com
  28. >$FTP
  29. >connect estwm8
  30. >220 ESTWM8 FTP Server (UCX Version 2.0) Ready.
  31. >Connected to ESTWM8.
  32. >LOGIN=(USER_NAME="hevans",PASSWORD=mypassword)
  33. >%CLI-W-PARMDEL, invalid parameter delimiter - check use of special characters
  34. > \=\
  35. >dir
  36. >425 Not logged in.
  37. >exit
  38. >$EXIT
  39.  
  40. >So, what is going on? Does this "feature" really work or is the manual
  41. >ahead of the software?
  42.  
  43. >Hugh.
  44.  
  45. >P.S. I also tried it without the '=' and it still didn't work.
  46.  
  47. I talked at length with DEC on the subject and the problem is that the manual
  48. documents a feature which might be implemented.  I get the distinct impression
  49. that UCX is a product which was rushed out the door, as there
  50. as many bugs in the documentation, including stupid production problems.  Now,
  51. the people who are implementing UCX are clever people - I've talked to them,
  52. and they're good - but the product was rushed.
  53.  
  54. Anyway, suppose you wish to copy file FILE from node NODE, username USERNAME
  55. password PASSWORD, etc.  Use the following:
  56.  
  57. $ OPEN/WRITE Y SYS$SCRATCH:TEMP.COM
  58. $ WRITE Y "$ FTP ''node'"
  59. $ WRITE Y "USERNAME ''username'"
  60. $ WRITE Y "''password'"
  61. $ WRITE Y "GET ''file'"
  62. $ WRITE Y "$ EXIT 1        ! no way to get status"
  63. $ CLOSE Y
  64. $ @ SYS$SCRATCH:TEMP.COM
  65. $ DEL SYS$SCRATCH:TEMP.COM;
  66.  
  67. Lousy solution, isn't it?  DEC didn't implement RCP, so that's about the best
  68. you can do.
  69.  
  70. Regards,
  71.  
  72. Jeff Silverman, Boeing Commercial Airplane.
  73.  
  74.