On Fri, Jun 07, 2013 at 12:36:35AM +0100, steve-ALUG@hst.me.uk wrote:
On 06/06/13 18:26, Srdjan Todorovic wrote:
Hi,
On 6 June 2013 16:32, Mark Rogers mark@quarella.co.uk wrote:
I need to download a set of backup files from a (Windows) server, deleting all but the newest from the server once successfully downloaded.
Something like Expect [0] could really help you here. You'd have to write all the file age, already-have-a-copy-of-a-file (etc) logic yourself though.
Wow - Expect looks interesting! I'd not seen that before.
Mark, I can think of several possibilities, all of which involve some sort of automation - shell script or batch file. These would require checking the status of a command to see if it suceeded: e.g.
I've not been following this thread but surely the answer is to install ncftp which has two separate utilities (ncftpget and ncftpput) which are spcifically designed for command line use. ncftp is available for both Linux and Windows. It's in most major distributions' repositories.