On Wed, Feb 07, 2007 at 05:58:57PM -0500, Kelley, Kris wrote:
> The main one is to be able to pipe the output of a program into a 'put', e.g. 
> via syntax like:
> 
> lftp> put "| myprog -a args" -o "load,dbname=mydb"

You can use a named pipe:

        lftp> !mkfifo db-fifo; myprog -a args > db-fifo &
        lftp> put db-fifo -o "load,dbname=mydb"

Not quite nice, but it works.

> BTW, other features are:
> - piping the output of a 'get' to a program (e.g. 'get data -o "| myprog2 -i 
> args"')

        lftp> cat -b file | myprog

> - turning off retries for a put/get that receives a 4xx reply (i.e. respond 
> the same as for a 5xx reply)

        lftp> set net:max-retries 1

I'm not sure if it works properly for put, some time ago there were reports
that it does not, but probably it was fixed later.

-- 
   Alexander.

Reply via email to