Using FTP functionality in a program

From: Henry Law (lawshouse.public_at_btinternet.com)
Date: 11/23/03


Date: Sat, 22 Nov 2003 23:03:07 +0000

I am writing a small application (in C; or maybe Perl) which will need
to transfer files from any one of a number of workstations to a Linux
(RH9) server. The transfers will be under programmatic control: there
will be no user interface (well, not to that bit anyway).

Rather than write file-transfer routines for both ends I need some
code which will interwork with one of the services which are already
available on the server, FTP being the obvious example. So I need
some code, or a callable module of some kind, which I can invoke from
my application to execute an FTP transfer; think "sendit(FileName,
DestHost, DestFileName, ..etc).

I've got the full source of the standard Unix FTP client but it's
thousands of lines almost devoid of comments and it'll take me ages to
root through it to find the hundred-or-so lines that I expect I need.
Has anyone got any other suggestions? It doesn't have to be FTP if
you've got a better idea, but the files might be quite large so I do
need some measure of efficiency.

BTW if this is wildly off-topic do please say so; the list of Linux
groups is so long that it's hard to pick the right one.



Relevant Pages

  • Re: File servers, web servers ?
    ... with the "server" to perform the activity. ... In the case of "web services", the distributed client is your web ... Finally, in the case of "FTP services", the distributed client is your ... what does this all have to do with Linux? ...
    (alt.os.linux)
  • Re: The best OS for small business
    ... >> I would like to ask you for your opinion and debate on my challenge. ... >> I would need Web Server, Mail Server, FTP Server, DNS, Firewall, in ... >> enough to spend every moment of my free time playing with Linux. ... Don't use FTP. ...
    (alt.os.linux)
  • Re: Which Distro.
    ... > have to ability to use my Linux box for both workstation and server. ... > and ftp servers. ... > as plug and play and like a windows attitude. ...
    (alt.os.linux)
  • Re: The best OS for small business
    ... > I would need Web Server, Mail Server, FTP Server, DNS, Firewall, in ... > reasons unknown to me, I still love Linux, and I want to give it a try. ... Don't use FTP. ... Don't run a DNS server. ...
    (alt.os.linux)
  • ACCESS VBA to transfer files to ftp server
    ... I also need to delete the file in ftp server after it is copied over to ... 200 VBA from a local computer to transfer files to a ftp server. ...
    (microsoft.public.access.modulesdaovba)