[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wput



Hi,
input file means, that wput tries to read the urls from the specified input 
file or in your case from stdin, but if stdin is binary data, we'll that 
cannot work. As described in manpage the only way to pipe data to wput is to 
use the input-pipe option which can also be something like cat - so that wput 
will read the data from stdin.

Regards,
Hagen

Am Mittwoch, 14. Juli 2004 12:57 schrieben Sie:
> Hi,
>
> 	tried the following yesterday:
>
> dd if=/dev/ide/host0/bus0/target0/lun0/part1 | gzip | wput \
> ftp://userid:passwd@host/home/userid/part1.gz
>
> It didn't work out. Segmentation faults mostly or the input
> was written to screen. All variations of '--input-file=-',
> '-i -' with '--binary' or finally 'wput --input-pipe=`dd \
> if=/dev/ide/host0/bus0/target0/lun0/part1 | gzip -` \
> ftp://userid:passwd@host/home/userid/part1.gz' gave the same
> results.
>
> I got it working finally by putting the 'dd' and 'gzip' commands
> in a shell-script and using the scriptname as an argument for
> the --input-pipe option.
>
> This was on a PXE netbooted system from debian-installer, Linux
> kernel version 2.4.26-1-386 from within ash (static shell).
>
> Hope you can inprove your wput (when does wls come out? ;-) )
> with this, or else ask for more info. Keep up the good work!
>
> Sincerely,
>
> Jan.

-- 
Mit besten Grüßen
 Hagen                          mailto:itooktheredpill@gmx.de
                      http://itooktheredpill.dyndns.org