Operating System - OpenVMS
1820475 Members
3337 Online
109624 Solutions
New Discussion юеВ

FTP-Routines for Fortran or C/C++

 
Paul Vinders
Occasional Contributor

FTP-Routines for Fortran or C/C++

Hello everyone,

I'm a new member.

I'm looking for ftp-routines to be used in a Fortran or C/C++ programm. Ftp-routines like get, put, connect, disconnect etc.

Thank you.

Sincerely,
Paul Vinders
5 REPLIES 5
Volker Halle
Honored Contributor

Re: FTP-Routines for Fortran or C/C++

Paul,

welcome to the OpenVMS ITRC forum.

Here is an old Ask-the-Wizard article answering this question:

http://h71000.www7.hp.com/wizard/wiz_0818.html

and I don't think the situation has changed up to now: there is no callable FTP interface available in the HP TCPIP stack.

Other vendor's TCPIP stacks may offer a FTP API. Search in comp.os.vms for 'FTP API for DEC Pascal'

Alternatively, you may want to use LIB$SPAWN and some of the COPY/FTP or similar commands or some FTP command procedures.

Volker.
Steven Schweda
Honored Contributor

Re: FTP-Routines for Fortran or C/C++

You might look at cURL or Wget to see if
there's anything useful there. I work more
with Wget, but I believe that cURL has some
kind of library (which Wget does not).

http://curl.haxx.se/

http://antinode.org/dec/sw/wget.html
Craig A Berry
Honored Contributor

Re: FTP-Routines for Fortran or C/C++

Here's a library that does that:

http://nbpfaus.net/~pfau/ftplib/

I think Hunter Goatley's HGFTP comes wth sources, so could perhaps provide some guidance if implementing your own. Recent versions of Kermit have ftp capability, though I'm not sure if anyone ever responded to the author's call for help in porting that feature to VMS.
Steven Schweda
Honored Contributor

Re: FTP-Routines for Fortran or C/C++

I made enough changes to enable basic FTP
client support in Kermit for VMS, but Frank
da Cruz was hoping for the fancy code to deal
with RMS file attributes (when talking to a
suitably capable FTP server), but that was
more work than I wanted to take on.

I don't know if any of my suggestions were
absorbed ito the official Kermit code. If
not, see:
http://antinode.org/ftp/kermit/2006-02-25/
ftp://antinode.org/kermit/2006-02-25/

and/or consult comp.os.vms in late February
2006.
Richard Whalen
Honored Contributor

Re: FTP-Routines for Fortran or C/C++

TCPware includes an FTP programming library.