Re: Is there a way to override wgetrc options on command line?

2001-06-01 Thread Hack Kampbjørn



Humes, David G. wrote:
 
 Hello,
 
 I have several cronjobs using wget and the wgetrc file turns on passive-ftp
 by default.  I have one site where strangely enough passive ftp does not
 work but active does work.  I'd rather leave the passive ftp default set and
 just change the one cronjob that requires active ftp.  Is there any way to
 tell wget to either disregard the wgetrc file or to override one or more of
 its options?
 
 Thanks.

What about --execute=COMMAND ?

$ wget --help
GNU Wget 1.7-pre1, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...

Mandatory arguments to long options are mandatory for short options too.

Startup:
  -V,  --version   display the version of Wget and exit.
  -h,  --help  print this help.
  -b,  --backgroundgo to background after startup.
  -e,  --execute=COMMAND   execute a `.wgetrc'-style command.
[...]

-- 
Med venlig hilsen / Kind regards

Hack Kampbjørn   [EMAIL PROTECTED]
HackLine +45 2031 7799



RE: Wget 1.6 Microsoft Windows binary

2001-06-01 Thread Herold Heiko



Sigh.
Geocities munched 
everything and *should* have restored it for now.
Although it was 
only a single simple (Very) page I felt quite attached to it and stupidly didn't 
have a backup.
Get the binary 
from http://www.geocities.com/hmantemp/, 
I'll restore something to the original site asap.
Heiko
 PREVINET 
S.p.A. 
[EMAIL PROTECTED]-- Via Ferretto, 
1 ph 
x39-041-5907073-- I-31021 Mogliano V.to (TV) fax x39-041-5907087-- 
ITALY

  -Original Message-From: Dr. Stefan Jiranek 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 31, 2001 8:31 
  PMTo: [EMAIL PROTECTED]Subject: Wget 1.6 Microsoft Windows 
  binary
  There is a broken link on your page with URL http://sunsite.dk/wget/index.html 
  
  refering to Heiko Herold with URL http://www.geocities.com/heiko_herold/.
  It seems that he has moved.
  
  Is there a chance to get a Wget 1.6 Microsoft 
  Windows binary (.exe file) somewhere.
  The 1.5.3 version misses some important features 
  which I need.
  
  Thanks for your help.
  
  Best regards!
  
  Stefan
  
  Dr. Stefan 
  JiranekElberfelder Str. 24a14612 Falkensee
  Germany
  
  Email: [EMAIL PROTECTED]


Re: wget 1.6 problems with FTP globbing through a Squid firewall

2001-06-01 Thread Hrvoje Niksic

Paul Eggert [EMAIL PROTECTED] writes:

 * A command like wget -rl1 'ftp://elsie.nci.nih.gov/pub/' -A'tz*.tar.gz'
   is less natural than wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'.

Yes.  I feel that the Right Thing would be for Wget to DWIM and
translate the glob pattern into a -A form when required.  I might
attempt to implement something like that for the next release, but I'm
not sure if that can work in the general case -- merging the glob with
a bunch of existing -R/-A options might be non-trivial.

 Sorry, I don't understand this point.  I thought that (in principle,
 at least) wget should interpret file name globbing consistently,
 regardless of whether it is using a proxy.

It's true that this should be the case, but that's not the current
situation.  Currently if you want to retrieve a '*' file from FTP, you
have to use '\*', whereas on HTTP '*' will suffice and '\*' will
retrieve literal '\*'.  I will try to consolidate all this for the
next release.

 (Please understand that I am not complaining -- I'm just trying to
  help wget get better.)

Don't worry, I'm taking your comments in good spirit!



fooling around...

2001-06-01 Thread Herold Heiko

in a moment of madness. Windows binary pre-1.7 is involved, so beware.
First problem: possibly there is some problem in the win binary related
to cookies, with a large cookies.txt file (500) wget does seem to
segfault (Memory could not be read...) while loading the cookies.
However I haven't been yet able to pin it down further except it
doeasn't happen with the same cookies.txt on linux (same version of
wget).

OTOH, consider www.goofball.com, create a login, login with the
remember me checkbox set, take the cookies and put them in a separate
file, say cookies2.txt . Will be something like

.goofball.com   TRUE/   FALSE   1300736097  gbperm  number
.goofball.com   TRUE/   FALSE   1937832397  password
your password in plain text
.goofball.com   TRUE/   FALSE   1937832397  username
your userid
.goofball.com   TRUE/   FALSE   991831757   gbsession
number

Now try to index the whole site with something like

wget --load-cookies=cookies2.txt --save-cookies=cookies2s.txt-e
robots=off -nc  -e timestamping=off -v -a html.log -r -l0 -Ahtm,html
-X/searchbin http://www.goofball.com

wget does seem to go into a infite loop, trying to load /index.html over
and over again. I expect it to load every page once only, even if
generated on the fly without timestamps (due to no timestamping, -r and
no-clobber).
Either I don't understand something in the manual or (I fear) there's a
bug.

Anyone ?
Heiko

-- 
-- PREVINET S.p.A.[EMAIL PROTECTED]
-- Via Ferretto, 1ph  x39-041-5907073
-- I-31021 Mogliano V.to (TV) fax x39-041-5907087
-- ITALY




Re: fooling around...

2001-06-01 Thread Hrvoje Niksic

Herold Heiko [EMAIL PROTECTED] writes:

 in a moment of madness. Windows binary pre-1.7 is involved, so beware.
 First problem: possibly there is some problem in the win binary related
 to cookies, with a large cookies.txt file (500) wget does seem to
 segfault (Memory could not be read...) while loading the cookies.

It would be of great help if you could run Wget under a debugger and
pinpoint at which line the problem happens.  It is quite possible that
Wget has a bug that only shows under Windows.

I'll take a look at the goofball thing.



RE: Is there a way to override wgetrc options on command line?

2001-06-01 Thread Humes, David G.

Thanks!  That worked.

--Dave

-Original Message-
From: Hack Kampbjørn [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 2:25 AM
To: Humes, David G.
Cc: '[EMAIL PROTECTED]'
Subject: Re: Is there a way to override wgetrc options on command line?




Humes, David G. wrote:
 
 Hello,
 
 I have several cronjobs using wget and the wgetrc file turns on
passive-ftp
 by default.  I have one site where strangely enough passive ftp does not
 work but active does work.  I'd rather leave the passive ftp default set
and
 just change the one cronjob that requires active ftp.  Is there any way to
 tell wget to either disregard the wgetrc file or to override one or more
of
 its options?
 
 Thanks.

What about --execute=COMMAND ?

$ wget --help
GNU Wget 1.7-pre1, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...

Mandatory arguments to long options are mandatory for short options too.

Startup:
  -V,  --version   display the version of Wget and exit.
  -h,  --help  print this help.
  -b,  --backgroundgo to background after startup.
  -e,  --execute=COMMAND   execute a `.wgetrc'-style command.
[...]

-- 
Med venlig hilsen / Kind regards

Hack Kampbjørn   [EMAIL PROTECTED]
HackLine +45 2031 7799



Re: SVR4 compile error

2001-06-01 Thread Andre Majorel

On 2001-05-26 11:10 +0200, Hrvoje Niksic wrote:
 Andre Majorel [EMAIL PROTECTED] writes:
 
  Compiling Wget 1.6 on an SVR4 derivative (NCR MP-RAS 3.0), I got
  this strange error:
 
 I think the problem is that Wget 1.6 tried to force strict ANSI mode
 out of the compiler.
 
 Try running make like this:
 
 make CC=cc CFLAGS=-g
 
 See if it compiles then.

After removing -cX from $(CC) and adding -lsocket -lnsl to
$(LIBS), it compiled. I guess autoconf has not been given much
testing on this platform. :-) The binary seems fine.

Is there a central repository for wget binaries ?

-- 
André Majorel
Work: [EMAIL PROTECTED]
Home: [EMAIL PROTECTED] http://www.teaser.fr/~amajorel/