![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: Dear Wizard, I have written a program in VAX Basic to extract data from files. Now my boss wants me to have the program run every 30 min and send the file via UCX (TCP/IP) to a TCP/IP PORT on UNIX machine. Queing the program is OK and I know how to manually FTP the ou tputted file to an account on the UNIX box. i.e. OPEN node USERNAME jijoiygs PASSWORD ddgsikjk My question is how do I automatically send to a PORT? Thank you The Answer is : There are many TCP/IP Ports in existence, some running standard protocols, some running site-specific protocols, and some running standard protocols on odd or unusual ports. At most sites, the FTP server uses port 21. Please see HELP COPY /FTP for information on performing FTP operations directly from DCL. COPY/FTP generally uses and assumes port 21. The FTP command interface does permit the specification of the port on the target system, but (as previously stated) port 21 is far and away the most common port used. (On the FTP command, secify the alternate port as an additional parameter after the parameter containing the IP host address. Within the FTP utility itself, CONNECT permits a port number parameter, in addition to the IP address) There are other implementation alternatives potentially available for this situation, including using a CGI script to display the data directly from your BASIC program -- remote web browsers could easily request the data when needed. Slightly more advanced applications might make the data available in XML format to the remote system as required. Various other alternatives include ISG Navigator for remote access to RMS files. Also see discussions of Passive-mode FTP (PASV) here in Ask The Wizard.
|