Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP File

Status
Not open for further replies.

kkcarlton

MIS
Sep 13, 2004
27
US
Hi All,

I have a batch job that runs several quiz extracts. When all the extracts are done running, I would like to FTP a file to our Linux box. Is this possible and if so, how?

Thanks,
Kristina
 
Before we can give a answer, we need some basic information:
[ol]
[li]Which version of VMS[/li]
[li]Which TCP stack and version[/li]
[/ol]
Once you supply this, we should be able to help you.

Ken
 
We are running OpenVMS V7.3-2 but I am not sure on the TCP stack and version. How would I go about finding out other than asking our network administrator?
 
There are three major TCP stacks that run on VMS: TCP/IP for VMS (aka UCX), Multinet, and TCPware.

At the DCL prompt, type:

tcpip sho ver

If that returns a something other than an error message, you have the first.

If not, type
multinet show version (I believe this is correct, if not type help multinet)

I'm not sure of the command for TCPware.

Ken
 
This is what I get:

HP TCP/IP Services for OpenVMS Alpha Version V5.4
on a COMPAQ AlphaServer DS20E 666 MHz running OpenVMS V7.3-2

Thanks,
Kristina
 
Ok.

First make sure you have the FTP client enabled.
You or you System Manager:
[ul]
[li]@sys$manager:tcpip$config[/li]
[li]2 - Client components
should show: 2 - FTP Client Enabled Started, if not enable and start it.[/li]
[/ul]

Once the client is enabled, you can either use the "copy/ftp" command or straight FTP.

Using "copy/ftp":
Code:
$ copy/ftp/log vmsfile.name linuxmachine"linuxuser linuxpass"::"path/to/linux/file/or/directory"
One caution, the linux username and password are in clear text.

FTP is mostly the same as any FTP anywhere.

Type Help FTP and/or Help copy/ftp for more information.

Ken
 
Kristina,

A word on storing passwords in files. You can get the password from a prompt (using the DCL READ/PROMPT command, or from a logical name (using the F$TRNLNM lexical function). You can then substitute it into the COPY command. The same holds true for the username.

This trick allows you to seperate development and production safely. It also avoids storing passwords in files.

- Bob

Robert "Bob" Gezelter,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top