On Feb 7, 2011, at 17:54, Jonathan Kaufman wrote:

> A problem I am attempting to troubleshoot is that lftp returns an return code 
> of 0, despite the fact that it can't login to the remote server and the rest 
> of the commands run also fail.
> 
> So for example, let's assume we are going to run lftp using a command script
> lftp -f t.cmd
> and t.cmd contains the following..
> open -p 990 serverA
> user bill fred
> cd /
> close
> quit

Change the "cd /" line like this:
cd / || exit 1


Reply via email to