delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/31/12:53:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <004901c3cfc6$ede09ae0$62a804d5@d5o2l2>
From: "doblejota" <doblejota AT movistar DOT com>
To: <cygwin AT cygwin DOT com>
Subject: wget, continued download
Date: Wed, 31 Dec 2003 18:51:52 +0100
MIME-Version: 1.0
X-IsSubscribed: yes

Hi,

I'm trying to get a section of a web page using wget. I edit a previous page
source just leaving an initial section. Then, I execute

  wget -c url

I obtain

  Continued download failed on this file, which conflicts with `-c'.
  Refusing to truncate existing file 'name.ext'. (Name of file I've edited).

The program obtains the page size before crash, bigger than modified file,
so why does it try to truncate the file?

I've tried to apply -N option, no change. Also I've used -O option; the file
is whole downloaded, I just want the last section.

Do you know a command-line application witch uses HTTP Range request in that
way?

By the way, if I want to stop download after the application receives an
specific word from server, how can I do it? I expected it is posible using a
pipe that analize wget output, but how? Note Cygwin pipes (DOS) features.

Thanks to everybody.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019