Re: lftp upload file from stdin not working with sftp

Jan Schmidle <[email protected]> Sun, 30 Nov 2014 19:42:03 -0800
Newsgroups gmane.network.lftp.user
Message-ID <[email protected]>
I updated the lftp version now to 4.6.0. Same issue.

After some time the command stops and prints:
put: /dev/stdin: cannot seek on data source



On 28 Nov 2014, at 06:16, Jan Schmidle <[email protected]> wrote:

> hello list
> 
> I try to upload a file to my backup server via sftp. Because I pipe it through gpg I use the 'put /dev/stdin -o filename' approach but this seems to be broken with sftp or am I missing something?
> 
> #> echo test | /usr/bin/lftp sftp://user:[email protected] -c 'put /dev/stdin -o lftp_test_stream.txt;'
> '/dev/stdin' at 0 (0%) [Sending data]
> 
> the command stalls at that point and nothing else happens. Any idea?
> 
> LFTP is Version 4.3.6


_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp