Albert Reiner <[email protected]> writes:

> Consider the following situation (running WWWOFFLE 2.9a under Linux):

Did you realise that this version of WWWOFFLE that you are using is 3
years old?  The current version is 2.9e and that is nearly a year old.

> Suppose I have a list of URLs, say, URL1 URL2 URL3..., some of which
> are already present in the cache.  Now I want to make sure that, once
> I am online again, those and only those URLi will be fetched that are
> not already in the cache.

> But what I would really like is some additional option such that
>
>     cat <list-of-URLs> | xargs wwwoffle -<new-option>
>
> will do the right thing, i.e., `wwwoffle -<new-option> URL1 URL2...`
> would behave like `wwwoffle URL1 URL2...` for URLi not already cached
> but skips those that are not present (and outputs some message like
> 'URLi is already in the cache, will not be fetched again' on stderr).
>
> Would this be a valuable feature to add?  And is there any chance this
> will actually be added in the future?  Comments?

I think that -<new-option> actually exists and is -o.

The following should do what you want (you need to throw away the
output of the "wwwoffle -o" command and only pass in one URL at a
time).

cat <list-of-URLs> | xargs wwwoffle -n 1 -o > /dev/null

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [email protected]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.9/user.html

Reply via email to