Re: Using FTP functionality in a program

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 11/23/03


Date: Sun, 23 Nov 2003 00:02:30 GMT

On Sat, 22 Nov 2003 23:03:07 +0000, Henry Law <lawshouse.public@btinternet.com> wrote:
>
>
> 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.

I use ncftp(get/put) for this sort of thing. They are made for
scripting. Any ftpd will work. FTP is definitely the simplest and
most bulletproof way to do what you want.

AC



Relevant Pages

  • 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)
  • Re: ISA Client Firewall
    ... Yes, install the firewall client on the workstations, as that will ensure ... Make sure that the LAN-settings in IE are pointing to the server and port ... > whether to roll it out the client application to all of the workstation. ... > etc) only problem I have is that one user that uses Dreamweaver cannot FTP ...
    (microsoft.public.windows.server.sbs)
  • Using FTP functionality in a program
    ... to transfer files from any one of a number of workstations to a Linux ... available on the server, FTP being the obvious example. ... BTW if this is wildly off-topic do please say so; the list of Linux ...
    (comp.os.linux.networking)
  • Re: What does this indicate? (LONG)
    ... FTP File Transfer Protocol A client-server ... protocol which allows a user on one computer to transfer files to and from ... > The firewall has blocked Internet access to your computer (TCP Port ...
    (comp.security.firewalls)
  • Re: transfer links seamlessly
    ... I had written an ftp script long back to transfer files from a unix ... nonstandard features. ...
    (comp.unix.shell)