Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Ftp between two machines but ftp transfer started from a 3:rd one. Date: Thu, 15 Sep 2016 15:09:31 -0000 (UTC) Organization: A noiseless patient Spider Lines: 52 Message-ID: References: <84c912e2-5fc1-4d8b-b194-0677f96b0c14@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 15 Sep 2016 15:09:31 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="16330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19k14mmMqBW8Fo2i3lxy4vj4NGSRwBXdOQ=" User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT 3663720 git://git.gnome.org/pan2) Cancel-Lock: sha1:fVuK07ZmdJXbDn0Q1Df1Aajqod0= Xref: csiph.com comp.lang.java.programmer:35615 On Thu, 15 Sep 2016 05:55:17 -0700, mike wrote: > Hi, > > We are looking into ftp:ing between two machines ( call them A and B) > and the the ftp transfer should be started from a third machine ( call > it C). Has anyone done this before, using java? > I do it all the time, but by logging into machine C and starting an SSH session on A, from which I run ftp transfers between machines A and B. I realise this is probably not what you want, but if you supplied bit more detail that would help people to give more relevant advice. Some questions: - what will cause machine C to start the FTP session? IOW will it be manually started? Automatically triggered by some sort of timer? Triggered by some other event? - what OS(es) are involved? If Linux, I'd do the lot with bash scripts, standard SSH clients and servers. I'd use a cron job to run scheduled transfers. If Windows, I'd do much the same since FOSS FTP and SSH clients and servers are available and so are 3rd party cron implementations. - why use FTP rather than SSH? - if you have to implement it as a set of Java processes there are Java libraries out there that provide FTP and SSH client code and also pure Java implementations of FTP and SSH servers, but why design/write/test Java code when both FTP and SSH clients and servers are available as free open source packages? > Do you have any hints or ideas on how to proceed? Is it possible to do > that with any of the existing libraries? I have the java framework > residing on machine C. > See above. > I guess I need: > > - host and password for A and B? > - file/files to be transferred. > Indeed. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |