Re: Using FTP functionality in a program
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 11/23/03
- Next message: Jim Fischer: "Re: Using a linux server as a firewall"
- Previous message: P.T. Breuer: "Re: Newbie Question - Network Config"
- In reply to: Henry Law: "Using FTP functionality in a program"
- Next in thread: Markku Kolkka: "Re: Using FTP functionality in a program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jim Fischer: "Re: Using a linux server as a firewall"
- Previous message: P.T. Breuer: "Re: Newbie Question - Network Config"
- In reply to: Henry Law: "Using FTP functionality in a program"
- Next in thread: Markku Kolkka: "Re: Using FTP functionality in a program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|