Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

FTP, passwords, and .netrc?

» close window

The Question is:

 
A client that I am working for has some command procedures that FTP files
to/from remote servers.  Right now they have the user id/password hard-coded
into their FTP statements.  What I would like to do is separate
out the id/password from the ftp logic.  I am new to Open VMS, but in UNIX
you can set up a file called .netrc and define the id/password there.  Does
anything like this exist in Open VMS?  We are using Open VMS version 6.2.
 
 


The Answer is :

 
  There is no direct analog of the UNIX .netrc file on OpenVMS.
 
  The OpenVMS TCP/IP Services package provides proxies for incoming
  connections, and (depending on what you are up to) the support for
  UCX$FTP_ANONYMOUS_ALIAS might also be of interest.  (On TCP/IP
  Services V5.0 and later, use TCPIP$FTP_ANONYMOUS_ALIAS.)
 
  With OpenVMS V6.2 and later and a compliant TCP/IP package, you can
  use the COPY/FTP, DIRECTORY/FTP and similar commands, and perform a
  symbol substitution (based on the contents of a symbol or logical
  name) as part of the FTP operation.  For example:
 
    $ targetsym = "node""user password"""
    $ directory/ftp 'targetsym'::
 
    $ define targetlnm "node""user password"""
    $ directory/ftp 'f$trnlnm("targetlnm")'::
 
  If you have a third-party TCP/IP package installed, please check the
  documentation provided by the vendor.
 

answer written or last revised on ( 6-DEC-1999 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.