[KLUG Members] Re: Verifying the success of an ftp command? -- use curl in your scripts

Bryan J. Smith members@kalamazoolinux.org
03 May 2002 20:45:50 -0400


On Fri, 2002-05-03 at 17:28, Patrick McGovern wrote:
> What might a reliable way(s) to verify that an ftp command was
> successfull (even if the shell return code = 0)? 
> If I have a process that ftp's say 5 files which overwrite
> existing files, I want to know that 5 new files were actually sent.

Build your scripts around "curl" instead of "ftp", "wget" or any other
utility.  It is the best for scripting IMHO, and handles cookies and
other, various session management unlike the others.

-- Bryan

-- 
Documented XML formats, never    Standards-based, pop-up free,
lose old files again, Office:     privacy-guaranteed browsing:
  http://www.openoffice.org          http://www.mozilla.org
--------------------------------------------------------------
Bryan J. Smith, SmithConcepts, Inc.  mailto:b.j.smith@ieee.org
Engineers and IT Professionals    http://www.SmithConcepts.com