Installing wget

2010-08-09 Thread Jerry McAllister
Hi All,

I started an instal of wget from ports - /usr/ports/ftp/wget

It comes up with some selections and I mistakenly selected GNUTLS.

Now I constantly get 
  GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
And the make quits.

How do I get rid of that.  I have done make clean, make diskclean
and deleted as many files as I dared, but it still won't build
and install wget.

Of course, there is some file I don't know about.  
Can someone point me to where to find it?

Thank you,

jerry
  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Andrea Venturoli

Il 08/09/10 20:20, Jerry McAllister ha scritto:

Hi All,

I started an instal of wget from ports - /usr/ports/ftp/wget

It comes up with some selections and I mistakenly selected GNUTLS.

Now I constantly get
   GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
And the make quits.

How do I get rid of that.  I have done make clean, make diskclean
and deleted as many files as I dared, but it still won't build
and install wget.

Of course, there is some file I don't know about.
Can someone point me to where to find it?



rm /var/db/ports/wget/options

or

portupgrade -Cf wget

or

cd /usr/ports/ftp/wget ; make config


 bye
av.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Polytropon
On Mon, 9 Aug 2010 14:20:08 -0400, Jerry McAllister jerr...@msu.edu wrote:
 Hi All,
 
 I started an instal of wget from ports - /usr/ports/ftp/wget
 
 It comes up with some selections and I mistakenly selected GNUTLS.
 
 Now I constantly get 
   GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
 And the make quits.
 
 How do I get rid of that.  I have done make clean, make diskclean
 and deleted as many files as I dared, but it still won't build
 and install wget.

Use the command make rmconfig to remove the configuration; to
repeat it, use make config.



 Of course, there is some file I don't know about.  
 Can someone point me to where to find it?

It's described in man 7 ports.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Jerry McAllister
On Mon, Aug 09, 2010 at 11:23:54AM -0700, Kurt Buff wrote:

 On Mon, Aug 9, 2010 at 11:20, Jerry McAllister jerr...@msu.edu wrote:
  Hi All,
 
  I started an instal of wget from ports - /usr/ports/ftp/wget
 
  It comes up with some selections and I mistakenly selected GNUTLS.
 
  Now I constantly get
   GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
  And the make quits.
 
  How do I get rid of that.  I have done make clean, make diskclean
  and deleted as many files as I dared, but it still won't build
  and install wget.
 
  Of course, there is some file I don't know about.
  Can someone point me to where to find it?
 
  Thank you,
 
  jerry
 
 Perhaps 'make config'?
 

Sure enough, that fixes it.
I should have thought of trying that.

But where was it keeping it that I couldn't obliterate manually?

Thanks,

jerry

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Jerry McAllister
On Mon, Aug 09, 2010 at 08:26:58PM +0200, Andrea Venturoli wrote:

 Il 08/09/10 20:20, Jerry McAllister ha scritto:
 Hi All,
 
 I started an instal of wget from ports - /usr/ports/ftp/wget
 
 It comes up with some selections and I mistakenly selected GNUTLS.
 
 Now I constantly get
GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
 And the make quits.
 
 How do I get rid of that.  I have done make clean, make diskclean
 and deleted as many files as I dared, but it still won't build
 and install wget.
 
 Of course, there is some file I don't know about.
 Can someone point me to where to find it?
 
 
 rm /var/db/ports/wget/options

Wow.   I didn't even know that exists.

 
 or
 
 portupgrade -Cf wget
 
 or
 
 cd /usr/ports/ftp/wget ; make config

The make config fixed it up for me.

Thanks for the info,

jerry


 
  bye
   av.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Bill Moran
In response to Jerry McAllister jerr...@msu.edu:

 Hi All,
 
 I started an instal of wget from ports - /usr/ports/ftp/wget
 
 It comes up with some selections and I mistakenly selected GNUTLS.
 
 Now I constantly get 
   GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
 And the make quits.
 
 How do I get rid of that.

make config should allow you to unselect that option, which should allow
the build to then succeed.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Kurt Buff
On Mon, Aug 9, 2010 at 11:20, Jerry McAllister jerr...@msu.edu wrote:
 Hi All,

 I started an instal of wget from ports - /usr/ports/ftp/wget

 It comes up with some selections and I mistakenly selected GNUTLS.

 Now I constantly get
  GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
 And the make quits.

 How do I get rid of that.  I have done make clean, make diskclean
 and deleted as many files as I dared, but it still won't build
 and install wget.

 Of course, there is some file I don't know about.
 Can someone point me to where to find it?

 Thank you,

 jerry

Perhaps 'make config'?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Rod Person

At 02:20 PM 08/09/2010, Jerry McAllister wrote:

How do I get rid of that.  I have done make clean, make diskclean
and deleted as many files as I dared, but it still won't build
and install wget.

Of course, there is some file I don't know about.
Can someone point me to where to find it?


Did you try make config?


Rod

==
This is email was sent by me for the purposes of not promoting global 
corporations or mindlessness.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Sam Fourman Jr.
On Mon, Aug 9, 2010 at 1:20 PM, Jerry McAllister jerr...@msu.edu wrote:
 Hi All,

 I started an instal of wget from ports - /usr/ports/ftp/wget

 It comes up with some selections and I mistakenly selected GNUTLS.

 Now I constantly get
  GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
 And the make quits.

 How do I get rid of that.  I have done make clean, make diskclean
 and deleted as many files as I dared, but it still won't build
 and install wget.


cd /usr/ports/ftp/wget/  make deinstall clean
make configure
deselect GNUTLS
make install clean


-- 

Sam Fourman Jr.
Fourman Networks
http://www.fourmannetworks.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Rodrigo Gonzalez
Run

make config

again and select the correct options

On Mon, 9 Aug 2010 14:20:08 -0400
Jerry McAllister jerr...@msu.edu wrote:

 Hi All,
 
 I started an instal of wget from ports - /usr/ports/ftp/wget
 
 It comes up with some selections and I mistakenly selected GNUTLS.
 
 Now I constantly get 
   GNUTLS and OPENSSL are mutually exclusive, enable at most one of
 them And the make quits.
 
 How do I get rid of that.  I have done make clean, make diskclean
 and deleted as many files as I dared, but it still won't build
 and install wget.
 
 Of course, there is some file I don't know about.  
 Can someone point me to where to find it?
 
 Thank you,
 
 jerry
   
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org



signature.asc
Description: PGP signature


Re: Installing wget

2010-08-09 Thread Frank Wißmann

Jerry McAllister schrieb:

Hi All,

I started an instal of wget from ports - /usr/ports/ftp/wget

It comes up with some selections and I mistakenly selected GNUTLS.

Now I constantly get 
  GNUTLS and OPENSSL are mutually exclusive, enable at most one of them

And the make quits.

How do I get rid of that.  I have done make clean, make diskclean
and deleted as many files as I dared, but it still won't build
and install wget.

Of course, there is some file I don't know about.  
Can someone point me to where to find it?


Thank you,

jerry
  
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



Hi, Jerry!
Try a make rmconfig-recursive in /usr/ports/ftp/wget and then a make 
config-recursive and select then what you want.


Greetings Frank

--
GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE 
Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y?


When pack meets pack in the jungle
and no one will move from the trail
wait till the leaders have spoken
it may be fair words shall prevail

(Rudyard Kipling)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Installing wget

2010-08-09 Thread Bernt Hansson

Jerry McAllister said the following on 2010-08-09 20:26:

On Mon, Aug 09, 2010 at 11:23:54AM -0700, Kurt Buff wrote:


On Mon, Aug 9, 2010 at 11:20, Jerry McAllisterjerr...@msu.edu  wrote:

Hi All,

I started an instal of wget from ports - /usr/ports/ftp/wget

It comes up with some selections and I mistakenly selected GNUTLS.

Now I constantly get
  GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
And the make quits.

How do I get rid of that.  I have done make clean, make diskclean
and deleted as many files as I dared, but it still won't build
and install wget.

Of course, there is some file I don't know about.
Can someone point me to where to find it?

Thank you,

jerry


Perhaps 'make config'?



Sure enough, that fixes it.
I should have thought of trying that.

But where was it keeping it that I couldn't obliterate manually?


/var/db/ports/portname
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: wget bug

2009-07-19 Thread Joe R. Jah
On Sat, 18 Jul 2009, Andrew Brampton wrote:

 Date: Sat, 18 Jul 2009 18:09:54 +0100
 From: Andrew Brampton brampton+free...@gmail.com
 To: Joe R. Jah j...@cloud.ccsf.cc.ca.us
 Cc: freebsd-questions@freebsd.org
 Subject: Re: OT: wget bug

 2009/7/18 Joe R. Jah j...@cloud.ccsf.cc.ca.us:
  Thank you Andrew.  Yes the server is truly returning 401.  I have already
  reconfigured wget to download everything regardless of their timestamp,
  but it's a waste of bandwidth, because most of the site is unchanged.
 
  Do you know of any workaround in wget, or an alternative tool to ONLY
  download newer files by http?
 

 Joe,
 There are two ways to check if the file has been changed. One, read
 the time the file was last changed, or two, read the file and compare
 it to a old copy. Wget was obviously trying to do option 1 but this is
 denied by the remote server. You most likely could get it to do option
 2, however by doing so you are wasting bandwidth downloading unchanged
 files just to check if they had been changed.

 If you have control over the remote webserver, then the simplest way
 to solve this problem is to configure the webserver not to return 401
 when wget sends the If-Modified-Since HTTP header. A better solution,
 again assuming you have control of the remote server, is to use
 rsync as it is designed for this kind of task.

 If you don't have control over the remote server, then you are stuck
 with your current solution.

 Andrew

Thank you Andrew.

Regards,

Joe
-- 
 _/   _/_/_/   _/  __o
 _/   _/   _/  _/ __ _-\,_
 _/  _/   _/_/_/   _/  _/ ..(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ahj...@cloud.ccsf.cc.ca.us___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: OT: wget bug

2009-07-19 Thread Joe R. Jah
On Sat, 18 Jul 2009, Karl Vogel wrote:

 Date: Sat, 18 Jul 2009 19:34:24 -0400 (EDT)
 From: Karl Vogel vogelke+u...@pobox.com
 To: freebsd-questions@freebsd.org
 Subject: Re: OT: wget bug

  On Sat, 18 Jul 2009 09:41:00 -0700 (PDT),
  Joe R. Jah j...@cloud.ccsf.cc.ca.us said:

 J Do you know of any workaround in wget, or an alternative tool to ONLY
 J download newer files by http?

curl can help for things like this.  For example, if you're getting
just a few files, fetch only the header and check the last-modified date:

   me% curl -I http://curl.haxx.se/docs/manual.html
   HTTP/1.1 200 OK
   Proxy-Connection: Keep-Alive
   Connection: Keep-Alive
   Date: Sat, 18 Jul 2009 23:24:24 GMT
   Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
   Last-Modified: Mon, 20 Apr 2009 17:46:02 GMT
   ETag: 5d63c-b2c5-1a936a80
   Accept-Ranges: bytes
   Content-Length: 45765
   Content-Type: text/html; charset=ISO-8859-1

You can download files only if the remote one is newer than a local copy:

   me% curl -z local.html http://remote.server.com/remote.html

Or only download the file if it was updated since Jan 12, 2009:

   me% curl -z Jan 12 2009 http://remote.server.com/remote.html

Curl tries to use persistent connections for transfers, so put as many
URLs on the same line as you can if you're looking to mirror a site.  I
don't know how to make curl do something like walking a directory for a
recursive download.

You can get the source at http://curl.haxx.se/download.html

Thank you Karl.  I already have curl installed, but I don't believe it can
get an entire website by giving it the base URL.

Regards,

Joe
-- 
 _/   _/_/_/   _/  __o
 _/   _/   _/  _/ __ _-\,_
 _/  _/   _/_/_/   _/  _/ ..(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ahj...@cloud.ccsf.cc.ca.us
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: wget bug

2009-07-18 Thread Andrew Brampton
2009/7/17 Joe R. Jah j...@cloud.ccsf.cc.ca.us:

 Hello all,

 I want to wget a site at regular intervals and only get the updated pages,
 so I use the this wget command line:

 wget -b -m -nH http://host.domain/Directory/file.html

 It works fine on the first try, but it fails on subsequent tries with the
 following error message:

 --8--
 Connecting to host.domain ... connected.
 HTTP request sent, awaiting response... 401 Unauthorized
 Authorization failed.
 --8--

This to me seems like the remote server is replying with 401. Perhaps
wget is sending the If-Modified-Since HTTP header, and the remote
server does not support this. I would confirm this by running tcpdump
(or wireshark) to sniff the traffic and see what the remote server is
replying with.

If the remote server is truly returning 401, then you might either
need to use an alternative tool, or configure wget differently.

Hope this helps
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: wget bug

2009-07-18 Thread Joe R. Jah
On Sat, 18 Jul 2009, Andrew Brampton wrote:

 Date: Sat, 18 Jul 2009 12:52:07 +0100
 From: Andrew Brampton brampton+free...@gmail.com
 To: Joe R. Jah j...@cloud.ccsf.cc.ca.us
 Cc: freebsd-questions@freebsd.org
 Subject: Re: OT: wget bug

 2009/7/17 Joe R. Jah j...@cloud.ccsf.cc.ca.us:
 
  Hello all,
 
  I want to wget a site at regular intervals and only get the updated pages,
  so I use the this wget command line:
 
  wget -b -m -nH http://host.domain/Directory/file.html
 
  It works fine on the first try, but it fails on subsequent tries with the
  following error message:
 
  --8--
  Connecting to host.domain ... connected.
  HTTP request sent, awaiting response... 401 Unauthorized
  Authorization failed.
  --8--

 This to me seems like the remote server is replying with 401. Perhaps
 wget is sending the If-Modified-Since HTTP header, and the remote
 server does not support this. I would confirm this by running tcpdump
 (or wireshark) to sniff the traffic and see what the remote server is
 replying with.

 If the remote server is truly returning 401, then you might either
 need to use an alternative tool, or configure wget differently.

 Hope this helps
 Andrew

Thank you Andrew.  Yes the server is truly returning 401.  I have already
reconfigured wget to download everything regardless of their timestamp,
but it's a waste of bandwidth, because most of the site is unchanged.

Do you know of any workaround in wget, or an alternative tool to ONLY
download newer files by http?

Regards,

Joe
-- 
 _/   _/_/_/   _/  __o
 _/   _/   _/  _/ __ _-\,_
 _/  _/   _/_/_/   _/  _/ ..(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ahj...@cloud.ccsf.cc.ca.us
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: wget bug

2009-07-18 Thread Andrew Brampton
2009/7/18 Joe R. Jah j...@cloud.ccsf.cc.ca.us:
 Thank you Andrew.  Yes the server is truly returning 401.  I have already
 reconfigured wget to download everything regardless of their timestamp,
 but it's a waste of bandwidth, because most of the site is unchanged.

 Do you know of any workaround in wget, or an alternative tool to ONLY
 download newer files by http?


Joe,
There are two ways to check if the file has been changed. One, read
the time the file was last changed, or two, read the file and compare
it to a old copy. Wget was obviously trying to do option 1 but this is
denied by the remote server. You most likely could get it to do option
2, however by doing so you are wasting bandwidth downloading unchanged
files just to check if they had been changed.

If you have control over the remote webserver, then the simplest way
to solve this problem is to configure the webserver not to return 401
when wget sends the If-Modified-Since HTTP header. A better solution,
again assuming you have control of the remote server, is to use
rsync as it is designed for this kind of task.

If you don't have control over the remote server, then you are stuck
with your current solution.

Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: wget bug

2009-07-18 Thread Karl Vogel
 On Sat, 18 Jul 2009 09:41:00 -0700 (PDT), 
 Joe R. Jah j...@cloud.ccsf.cc.ca.us said:

J Do you know of any workaround in wget, or an alternative tool to ONLY
J download newer files by http?

   curl can help for things like this.  For example, if you're getting
   just a few files, fetch only the header and check the last-modified date:

  me% curl -I http://curl.haxx.se/docs/manual.html
  HTTP/1.1 200 OK
  Proxy-Connection: Keep-Alive
  Connection: Keep-Alive
  Date: Sat, 18 Jul 2009 23:24:24 GMT
  Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
  Last-Modified: Mon, 20 Apr 2009 17:46:02 GMT
  ETag: 5d63c-b2c5-1a936a80
  Accept-Ranges: bytes
  Content-Length: 45765
  Content-Type: text/html; charset=ISO-8859-1

   You can download files only if the remote one is newer than a local copy:

  me% curl -z local.html http://remote.server.com/remote.html

   Or only download the file if it was updated since Jan 12, 2009:

  me% curl -z Jan 12 2009 http://remote.server.com/remote.html

   Curl tries to use persistent connections for transfers, so put as many
   URLs on the same line as you can if you're looking to mirror a site.  I
   don't know how to make curl do something like walking a directory for a
   recursive download.

   You can get the source at http://curl.haxx.se/download.html

-- 
Karl Vogel  I don't speak for the USAF or my company

If lawyers are disbarred and clergymen defrocked, doesn't it follow
that electricians can be delighted, musicians denoted, cowboys deranged,
models deposed, tree surgeons debarked and dry cleaners depressed?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


OT: wget bug

2009-07-17 Thread Joe R. Jah
Hello all,

I want to wget a site at regular intervals and only get the updated pages,
so I use the this wget command line:

wget -b -m -nH http://host.domain/Directory/file.html

It works fine on the first try, but it fails on subsequent tries with the
following error message:

--8--
Connecting to host.domain ... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.
--8--

I can change directory from which to run wget every time, but that defeats
the purpose of downloading only the changed files.

I googled wget fails on second try and found this small patch in a Linux
group that should supposedly fix the problem:

--8--
--- wget-1.10.2/src/ftp.c.cwd   2006-12-03 13:23:08.801467652 +0100
+++ wget-1.10.2/src/ftp.c   2006-12-03 20:30:24.641876672 +0100
@@ -1172,7 +1172,7 @@
len = 0;
   err = getftp (u, len, restval, con);

-  if (con-csock != -1)
+  if (con-csock == -1)
con-st = ~DONE_CWD;
   else
con-st |= DONE_CWD;
--8--

My wget is the latest version in the ports, 1.11.4.

Any ideas or advise is greatly appreciated.

Regards,

Joe
-- 
 _/   _/_/_/   _/  __o
 _/   _/   _/  _/ __ _-\,_
 _/  _/   _/_/_/   _/  _/ ..(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ahj...@cloud.ccsf.cc.ca.us
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: wget bug

2009-07-17 Thread John Nielsen
On Friday 17 July 2009 06:12:33 pm Joe R. Jah wrote:
 I want to wget a site at regular intervals and only get the updated
 pages, so I use the this wget command line:

 wget -b -m -nH http://host.domain/Directory/file.html

 It works fine on the first try, but it fails on subsequent tries with
 the following error message:

 --8--
 Connecting to host.domain ... connected.
 HTTP request sent, awaiting response... 401 Unauthorized
 Authorization failed.
 --8--

 I can change directory from which to run wget every time, but that
 defeats the purpose of downloading only the changed files.

 I googled wget fails on second try and found this small patch in a
 Linux group that should supposedly fix the problem:

 --8--
 --- wget-1.10.2/src/ftp.c.cwd   2006-12-03 13:23:08.801467652 +0100
 +++ wget-1.10.2/src/ftp.c   2006-12-03 20:30:24.641876672 +0100
 @@ -1172,7 +1172,7 @@
 len = 0;
err = getftp (u, len, restval, con);

 -  if (con-csock != -1)
 +  if (con-csock == -1)
 con-st = ~DONE_CWD;
else
 con-st |= DONE_CWD;
 --8--

 My wget is the latest version in the ports, 1.11.4.

 Any ideas or advise is greatly appreciated.

I can't tell if your patch has already been applied upstream or if it's 
a reverse patch. The current distfile matches the +++ version at line 
1185. (normally the +++ file is the new version but it's easy to get 
the order reversed if you're not used to running diff).

You could always just try the patch. Something along the lines of this:

cd /usr/ports/ftp/wget
make clean
make patch  #extract the distfiles and apply FreeBSD patches
cd work/wget-1.11.4/src
vi ftp.c#or any editor you like
  ...go to line 1185 and change == to !=
  ...save and quit the editor
cd /usr/ports/ftp/wget
make
make deinstall  make reinstall
  ... try your procedure again.

If you don't like the results a make clean will erase your (modified) 
work directory and you can build the original version again.

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: wget bug

2009-07-17 Thread Joe R. Jah
On Fri, 17 Jul 2009, John Nielsen wrote:

 Date: Fri, 17 Jul 2009 18:52:46 -0400
 From: John Nielsen li...@jnielsen.net
 To: freebsd-questions@freebsd.org
 Cc: Joe R. Jah j...@cloud.ccsf.cc.ca.us
 Subject: Re: OT: wget bug

 On Friday 17 July 2009 06:12:33 pm Joe R. Jah wrote:
  I want to wget a site at regular intervals and only get the updated
  pages, so I use the this wget command line:
 
  wget -b -m -nH http://host.domain/Directory/file.html
 
  It works fine on the first try, but it fails on subsequent tries with
  the following error message:
 
  --8--
  Connecting to host.domain ... connected.
  HTTP request sent, awaiting response... 401 Unauthorized
  Authorization failed.
  --8--
 
  I can change directory from which to run wget every time, but that
  defeats the purpose of downloading only the changed files.
 
  I googled wget fails on second try and found this small patch in a
  Linux group that should supposedly fix the problem:
 
  --8--
  --- wget-1.10.2/src/ftp.c.cwd   2006-12-03 13:23:08.801467652 +0100
  +++ wget-1.10.2/src/ftp.c   2006-12-03 20:30:24.641876672 +0100
  @@ -1172,7 +1172,7 @@
  len = 0;
 err = getftp (u, len, restval, con);
 
  -  if (con-csock != -1)
  +  if (con-csock == -1)
  con-st = ~DONE_CWD;
 else
  con-st |= DONE_CWD;
  --8--
 
  My wget is the latest version in the ports, 1.11.4.
 
  Any ideas or advise is greatly appreciated.

 I can't tell if your patch has already been applied upstream or if it's
 a reverse patch. The current distfile matches the +++ version at line
 1185. (normally the +++ file is the new version but it's easy to get
 the order reversed if you're not used to running diff).

 You could always just try the patch. Something along the lines of this:

 cd /usr/ports/ftp/wget
 make clean
 make patch#extract the distfiles and apply FreeBSD patches
 cd work/wget-1.11.4/src
 vi ftp.c  #or any editor you like
   ...go to line 1185 and change == to !=
   ...save and quit the editor
 cd /usr/ports/ftp/wget
 make
 make deinstall  make reinstall
   ... try your procedure again.

 If you don't like the results a make clean will erase your (modified)
 work directory and you can build the original version again.

Thank you John.  That was a simple procedure, but unfortunately the patch
did not fix the problem.

Regards,

Joe
-- 
 _/   _/_/_/   _/  __o
 _/   _/   _/  _/ __ _-\,_
 _/  _/   _/_/_/   _/  _/ ..(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ahj...@cloud.ccsf.cc.ca.us
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


wget vs fetch

2008-07-28 Thread Marcel Grandemange
I have a problem with a box I upgraded from FreeBSD 6.2 To FreeBSD7

 

It seems the following is happening when I try use portupgrade -a or even
building ports.

ALL transfers that are FTP fail.

 

Now to make this simple, I have following environmental variables set..

 

http_proxy=http://192.168.12.4:3128/

ftp_proxy=http://192.168.12.1:3128/

FTP_PASSIVE_MODE=YES

 

And here is the strange thing..

Fetch fails, but if I use wget there is no problem.

The firewall does allow ftp to go directly aswell, so I have also tried
leaving out any and all proxy settings, this fails aswell. (Except for wget
once again)

 

And here is the crux.

 

I have 5 mahcines on SAME network that has no issues like this, so this
makes me think fetch is broke somehow.

How can I force FreeBSD to use wget instead of fetch to bypass this?

 

 

Ive tried setting env FETCH_CMD=wget but that results in wget failing with
msg:

 

Try `wget --help' for more options.

= Attempting to fetch from http://mirror.sg.depaul.edu/pub/security/nmap/.

wget: invalid option --

Usage: wget [OPTION]... [URL]...

 

 

 

Thankx ahead!

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


wget vs fetch

2008-07-28 Thread Marcel Grandemange
I have a problem with a box I upgraded from FreeBSD 6.2 To FreeBSD7

 

It seems the following is happening when I try use portupgrade -a or even
building ports.

ALL transfers that are FTP fail.

 

Now to make this simple, I have following environmental variables set..

 

http_proxy=http://192.168.12.4:3128/

ftp_proxy=http://192.168.12.1:3128/

FTP_PASSIVE_MODE=YES

 

And here is the strange thing..

Fetch fails, but if I use wget there is no problem.

The firewall does allow ftp to go directly aswell, so I have also tried
leaving out any and all proxy settings, this fails aswell. (Except for wget
once again)

 

And here is the crux.

 

I have 5 mahcines on SAME network that has no issues like this, so this
makes me think fetch is broke somehow.

How can I force FreeBSD to use wget instead of fetch to bypass this?

 

 

Ive tried setting env FETCH_CMD=wget but that results in wget failing with
msg:

 

Try `wget --help' for more options.

= Attempting to fetch from http://mirror.sg.depaul.edu/pub/security/nmap/.

wget: invalid option --

Usage: wget [OPTION]... [URL]...

 

 

 

Thankx ahead!

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: wget vs fetch

2008-07-28 Thread Marcel Grandemange
Thank You, Worked Perfectly!
Saved My Life ;

-Original Message-
From: Sergey Zaharchenko [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 28, 2008 12:35 PM
To: Marcel Grandemange
Subject: Re: wget vs fetch

Hello Marcel!

Mon, Jul 28, 2008 at 12:09:16PM +0200 you wrote:

 Ive tried setting env FETCH_CMD=wget but that results in wget failing 
 with
 msg:
 
  
 
 Try `wget --help' for more options.
 
 = Attempting to fetch from
http://mirror.sg.depaul.edu/pub/security/nmap/.
 
 wget: invalid option --
 
 Usage: wget [OPTION]... [URL]...

You might want to add `DISABLE_SIZE=YES' to your /etc/make.conf, as the
fetch's -S option confuses wget. FWIW I use that in connection with
`FETCH_CMD=wget -c --passive-ftp' in make.conf and it has been working for a
long time for me.

--
DoubleF
No virus detected in this message. Ehrm, wait a minute...
/kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no
virus:)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


wget / wput

2008-03-14 Thread Jim Pazarena

I began using wput recently.

While wput completes a transfer, it always ends with a

Segmentation fault: 11

if the wput is forced to fail (with an incorrect password for instance) it 
issues
what appears to be a correct response:
 login-Sequence failed ..
 Transmission of 1 file failed.

but if the transfer completes as expected, Seg fault every time!

suggestions would be appreciated.  This is on FreeBSD 7.0 i386, however
I noticed the same error on 6.2 (and quit using wput for THAT reason).
Now I *would* like to use it, but this is disconcerting.

thanks,
Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: wget / wput

2008-03-14 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Jim Pazarena
 Sent: Friday, March 14, 2008 7:47 AM
 To: FreeBSD Mailing List
 Subject: wget / wput
 
 
 I began using wput recently.
 
 While wput completes a transfer, it always ends with a
 
 Segmentation fault: 11
 
 if the wput is forced to fail (with an incorrect password for 
 instance) it issues
 what appears to be a correct response:
   login-Sequence failed ..
   Transmission of 1 file failed.
 
 but if the transfer completes as expected, Seg fault every time!
 
 suggestions would be appreciated.  This is on FreeBSD 7.0 i386, however
 I noticed the same error on 6.2 (and quit using wput for THAT reason).
 Now I *would* like to use it, but this is disconcerting.
 

File a send-pr, this is obviously a bug with the port and the
port maintainer should correct it.  seg-faults happen when the
programmer makes a mistake in the code, the port manager should
have caught this and either corrected the bug or pursued it with
the developer of wput.  If a porter can't get a program to
build without segfaulting under FBSD and they cannot get help from
the developer, they should abandon the port.

In the meantime, try going to the site that the wput program is
hosted at and downloading the source, then compile it according
to the directions in the wput distribution, and see if it still
segfaults.

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using wget to mirror just part of a web site?

2006-10-02 Thread Christopher M. Hobbs
 wget -m -nH -r http://us.archive.ubuntu.com/ubuntu/dists -o 
 /var/log/${site}_mirror.log
 
 But that gets the whole sit. What I want to do is just start at the
 toop of the ubuntu/dists tree.

Perhaps the '--no-parent' knob would be of some help?

cmh
-- 
Christopher M. Hobbs
IS Technician, City of Siloam Springs
[EMAIL PROTECTED], (479).524.5136


pgpeuzdhR3kdx.pgp
Description: PGP signature


Re: Using wget to mirror just part of a web site?

2006-10-02 Thread Ivan Levchenko

Yes, the --no-parent is what you need

On 10/2/06, Christopher M. Hobbs [EMAIL PROTECTED] wrote:

 wget -m -nH -r http://us.archive.ubuntu.com/ubuntu/dists -o 
/var/log/${site}_mirror.log

 But that gets the whole sit. What I want to do is just start at the
 toop of the ubuntu/dists tree.

Perhaps the '--no-parent' knob would be of some help?

cmh
--
Christopher M. Hobbs
IS Technician, City of Siloam Springs
[EMAIL PROTECTED], (479).524.5136






--
Best Regards,

Ivan Levchenko
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Using wget to mirror just part of a web site?

2006-10-01 Thread stan
I looked at the mirror port, and it seemded complex to set up, 
and looks like it is not bieng manitaned any more as  teh link
reference in it's man page is dead.

So I figure I can use wget to mirror the web sties I need to mirror.

I have it mostly working I'm suing something like:

wget -m -nH -r http://us.archive.ubuntu.com/ubuntu/dists -o 
/var/log/${site}_mirror.log

But that gets the whole sit. What I want to do is just start at the
toop of the ubuntu/dists tree.

What am I doing wrong?

-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using wget to mirror just part of a web site?

2006-10-01 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

stan wrote:
 I looked at the mirror port, and it seemded complex to set up, 
 and looks like it is not bieng manitaned any more as  teh link
 reference in it's man page is dead.
 
 So I figure I can use wget to mirror the web sties I need to mirror.
 
 I have it mostly working I'm suing something like:
 
 wget -m -nH -r http://us.archive.ubuntu.com/ubuntu/dists -o 
 /var/log/${site}_mirror.log
 
 But that gets the whole sit. What I want to do is just start at the
 toop of the ubuntu/dists tree.
 
 What am I doing wrong?
 

I think this is the option you want:

- From recursive section of wget(1):

- -np
- --no-parent
Do not ever ascend to the parent directory when retrieving  
recursively.  This is a useful option, since it guarantees
that only the files below a certain hierarchy will be
downloaded.

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFH7EK6CkrZkzMC68RAgqnAJ95BXcnqL7+Yo2UZq2ZgJu4BKay2gCcCocY
b2Dy751/epG44xu8ZUMc0Ks=
=HVLW
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using wget to mirror just part of a web site?

2006-10-01 Thread stan
On Sun, Oct 01, 2006 at 05:14:03AM -0700, Garrett Cooper wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 stan wrote:
  I looked at the mirror port, and it seemded complex to set up, 
  and looks like it is not bieng manitaned any more as  teh link
  reference in it's man page is dead.
  
  So I figure I can use wget to mirror the web sties I need to mirror.
  
  I have it mostly working I'm suing something like:
  
  wget -m -nH -r http://us.archive.ubuntu.com/ubuntu/dists -o 
  /var/log/${site}_mirror.log
  
  But that gets the whole sit. What I want to do is just start at the
  toop of the ubuntu/dists tree.
  
  What am I doing wrong?
  
 
 I think this is the option you want:
 
 - From recursive section of wget(1):
 
 - -np
 - --no-parent
   Do not ever ascend to the parent directory when retrieving  
 recursively.  This is a useful option, since it guarantees
   that only the files below a certain hierarchy will be
   downloaded.
 

Looked correct. But I'm still getting the whole tree, starting at ubuntu.

Thaks for the input though.

-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ipfw, ftp and wget

2006-09-26 Thread vittorio
I'm using ipfw as firewall. 
What rules should I add to use both wget and ftp from my box only towards the 
internet through my iwi0?

(I found the following lines for ftp but they don't seem to work:
..
ipfw add 45 allow tcp from any to any 21 in setup keep-state
ipfw add 46 allow udp from any to any 21 in setup keep-state)

Vittorio 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ipfw, ftp and wget

2006-09-26 Thread Josh Paetzel
On Tuesday 26 September 2006 20:07, vittorio wrote:
 I'm using ipfw as firewall.
 What rules should I add to use both wget and ftp from my box only
 towards the internet through my iwi0?

 (I found the following lines for ftp but they don't seem to work:
 ..
 ipfw add 45 allow tcp from any to any 21 in setup keep-state
 ipfw add 46 allow udp from any to any 21 in setup keep-state)

 Vittorio

You want to allow traffic out.  The keep state will take care of 
allowing responses back in.

-- 
Thanks,

Josh Paetzel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fetch, pkg_fetch, wget from behind firewall

2006-05-15 Thread Lowell Gilbert
[EMAIL PROTECTED] (Michael A. Koerber) writes:

 For FreeBSD 5.x through 6.1 (the limit of my experiance w/ FreeBSD) 
 FETCH'ing from behind our fire wall only works most of the time.  

 The problem, when it occurs, is at the end of the file transfer when
 fetch hangs forever (i.e., 30 minutes to 24+hours when I finally kill
 the process).  The site for which this always happens is
 ftp.belnet.be.

 I have tried
   setting FTP_PASSAVE=YES
   setting FTP_TIMEOUT=5
   setting HTTP_TIMEOUT=5

 and none have worked...any ideas

Well, the first of those has two different spelling errors, but I'll
just assume you didn't cut-and-paste it.

If that one host is the only one that has problems, then don't use it;
I'm pretty sure everything that's there is available elsewhere too...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wget port

2005-02-07 Thread John J Vaughan
Or you could try using curl instead.
ports/ftp/curl
-John
On Sunday, February 6, 2005, at 01:36  PM, DanGer wrote:
Hi dave,
Sunday, February 6, 2005, 7:11:28 PM, you has on mind:
Hello,
I was wondering what the status of the wget ports was? I've been 
getting
an error about wget 1.8.2 having vulnerabilities so i uninstalled it 
and
installed or tried to install wget-devel, but portaudit said it also 
had
vulnerabilities and it would not permit the install to continue.
Thanks.
Dave.
wget has serious vulnerabilities that aren't already fixed even in
devel port...if you want install wget despite these vulns, try to do
make -DDISABLE_VULNERABILITIES install
--
Best Regards,
+--==/\/\==--+   (__)  FreeBSD
| DanGer [EMAIL PROTECTED] |\\\'',)  The
| [EMAIL PROTECTED] ICQ261701668 |  \/  \ ^Power
| http://danger.homeunix.org |  .\._/_)To
+--==\/\/==--+ Serve
[ Joe's Moturary: You Stab 'Em, We Slab 'Em! ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


wget port

2005-02-06 Thread dave
Hello,
I was wondering what the status of the wget ports was? I've been getting
an error about wget 1.8.2 having vulnerabilities so i uninstalled it and
installed or tried to install wget-devel, but portaudit said it also had
vulnerabilities and it would not permit the install to continue.
Thanks.
Dave.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wget port

2005-02-06 Thread DanGer
Hi dave,

Sunday, February 6, 2005, 7:11:28 PM, you has on mind:

 Hello,
 I was wondering what the status of the wget ports was? I've been getting
 an error about wget 1.8.2 having vulnerabilities so i uninstalled it and
 installed or tried to install wget-devel, but portaudit said it also had
 vulnerabilities and it would not permit the install to continue.
 Thanks.
 Dave.

wget has serious vulnerabilities that aren't already fixed even in
devel port...if you want install wget despite these vulns, try to do
make -DDISABLE_VULNERABILITIES install

-- 
Best Regards,

+--==/\/\==--+   (__)  FreeBSD
| DanGer [EMAIL PROTECTED] |\\\'',)  The
| [EMAIL PROTECTED] ICQ261701668 |  \/  \ ^Power
| http://danger.homeunix.org |  .\._/_)To
+--==\/\/==--+ Serve

[ Joe's Moturary: You Stab 'Em, We Slab 'Em! ]


Please tell me which tool do the same work as wget?

2004-12-10 Thread Liu Haixiao
Dear sir:
In FreeBSD5.2.1 I have installed a wget1.9, but it
doesn't work, report:
%wget --version
/usr/libexec/ld-elf.so.1: Shared object libc.so.4
 not found
Now I want to know:
1. Is there another tool do the same work as wget?
2. Which package should I install?( I had install
linux-base-7.1_5 )

Thanks!
Liu Haixiao




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please tell me which tool do the same work as wget?

2004-12-10 Thread Greg 'groggy' Lehey
On Friday, 10 December 2004 at 19:59:54 -0800, Liu Haixiao wrote:
 Dear sir:
 In FreeBSD5.2.1 I have installed a wget1.9, but it
 doesn't work, report:
 wget --version
 /usr/libexec/ld-elf.so.1: Shared object libc.so.4
  not found

How did you install it?

 Now I want to know:
 1. Is there another tool do the same work as wget?

There are a number.

 2. Which package should I install?( I had install linux-base-7.1_5 )

It looks to me as if you've installed a Linux binary.  Before trying
to fix that installation, try installing the wget port:

 # cd /usr/ports/net/wget
 # make install

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgpbL9wd6gA1P.pgp
Description: PGP signature


using wget for FETCH_CMD

2004-03-19 Thread Brady Montz
Hello, I've been using wget as my FETCH_CMD in /etc/make.conf for some
time now, as it's the only thing I've been able to use to reliably get
through the microsoft proxy server.

Now, when I make fetch, I get this error:

wget: illegal option --

and according to the thread /etc/make.c  wget... on this list, a
couple weeks back it appears that a recent change to /usr/ports/Mk/*
broke this, and now FETCH_CMD needs to use fetch.

The problem is, that I while I fetch does seem to be able to download HTTP
urls, I can't get it to download FTP urls through the proxy.

I've tried various combinations of FTP_PROXY and FTP_PASSIVE_MODE. Is
there anything else I can set? 

Finally, is there any way I can get it to use wget again?

-- 
 Brady Montz
 [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: using wget for FETCH_CMD

2004-03-19 Thread Dan Nelson
In the last episode (Mar 19), Brady Montz said:
 The problem is, that I while I fetch does seem to be able to download
 HTTP urls, I can't get it to download FTP urls through the proxy.
 
 I've tried various combinations of FTP_PROXY and FTP_PASSIVE_MODE. Is
 there anything else I can set?

Setting FTP_PROXY to http://proxyserver:port/ works for me and a squid
proxy.  If it's using a proxy, I don't think FTP_PASSIVE_MODE is
checked.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: using wget for FETCH_CMD

2004-03-19 Thread Brady Montz
Dan Nelson [EMAIL PROTECTED] writes:

 In the last episode (Mar 19), Brady Montz said:
 The problem is, that I while I fetch does seem to be able to download
 HTTP urls, I can't get it to download FTP urls through the proxy.
 
 I've tried various combinations of FTP_PROXY and FTP_PASSIVE_MODE. Is
 there anything else I can set?

 Setting FTP_PROXY to http://proxyserver:port/ works for me and a squid
 proxy.  If it's using a proxy, I don't think FTP_PASSIVE_MODE is
 checked.

Sadly, it doesn't work for me. And, as much as I hate this proxy
server, it is what I have to go through. 

So, is there any way to get back to using wget? I have my doubts that
fetch is going to be able to do the job.

-- 
 Brady Montz
 [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: using wget for FETCH_CMD

2004-03-19 Thread Dan Nelson
In the last episode (Mar 19), Brady Montz said:
 Dan Nelson [EMAIL PROTECTED] writes:
  In the last episode (Mar 19), Brady Montz said:
  The problem is, that I while I fetch does seem to be able to
  download HTTP urls, I can't get it to download FTP urls through
  the proxy.
  
  I've tried various combinations of FTP_PROXY and FTP_PASSIVE_MODE.
  Is there anything else I can set?
 
  Setting FTP_PROXY to http://proxyserver:port/ works for me and a
  squid proxy.  If it's using a proxy, I don't think FTP_PASSIVE_MODE
  is checked.
 
 Sadly, it doesn't work for me. And, as much as I hate this proxy
 server, it is what I have to go through.

What doesn't work, exactly?  Try comparing the output of 
fetch -vv ftp://ftp.netscape.com/Welcome; and 
wget -d ftp://ftp.netscape.com/Welcome;.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/make.conf wget...

2004-03-02 Thread Glenn Sieb
In my /etc/make.conf I have:

FETCH_CMD = /usr/local/bin/wget

When I go to build a port (in this case, kde3), it goes to fetch gettext
(for example), then I get:

wget: illegal option --

Then it stops. I've updated wget to 1.8.2, with the same result. So now
I've #'d out that line in make.conf so I'm using fetch again, but I'd
really prefer to use wget, if possible.

I've googled for this, with no luck... Any ideas?

Thanks in advance!
Glenn
---
The original portions of this message are the copyright of the author
(c)1998-2004 Glenn E. Sieb.ICQ UIN: 300395IRC Nick: Rainbear
All acts of Love and Pleasure are Her rituals-Charge of the Goddess

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/make.conf wget...

2004-03-02 Thread Jonathan Chen
On Tue, Mar 02, 2004 at 02:14:39PM -0500, Glenn Sieb wrote:
 In my /etc/make.conf I have:
 
 FETCH_CMD = /usr/local/bin/wget
 
 When I go to build a port (in this case, kde3), it goes to fetch gettext
 (for example), then I get:
 
 wget: illegal option --
 
 Then it stops. I've updated wget to 1.8.2, with the same result. So now
 I've #'d out that line in make.conf so I'm using fetch again, but I'd
 really prefer to use wget, if possible.
 
 I've googled for this, with no luck... Any ideas?

The recent updates to the ports/Mk/* files restricts the FETCH_CMD to
/usr/bin/fetch. Why would you use wget instead of the base-system's
fetch to build the ports anyway?
-- 
Jonathan Chen [EMAIL PROTECTED]
--
   Do not take life too seriously.
   You will never get out of it alive.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/make.conf wget...

2004-03-02 Thread Glenn Sieb
Jonathan Chen wrote:

The recent updates to the ports/Mk/* files restricts the FETCH_CMD to
/usr/bin/fetch. Why would you use wget instead of the base-system's
fetch to build the ports anyway?
 

Because fetch used to break horribly under our stateful ipf firewall at 
the office.

Because wget shows you the *status* of a download--not just how many 
bytes it's downloaded.

Because I like wget.

So, thank you for your answer of how they changed ports/Mk/* -- I have 
reverted my systems back to using fetch.

Glenn

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/usr/libexec/ld-elf.so.1: wget: Undefined symbol OpenSSL_add_all_algorithms

2004-01-14 Thread Spades
Hi,

Everytime i do a wget, i get this error.. how do i fix it?

# wget http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
--21:29:39--  http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
   = `ircii-pana-1.0c19.tar.gz'
/usr/libexec/ld-elf.so.1: wget: Undefined symbol
OpenSSL_add_all_algorithms

Thanks again.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/libexec/ld-elf.so.1: wget: Undefined symbolOpenSSL_add_all_algorithms

2004-01-14 Thread Spades
Hi,

Everytime i do a wget, i get this error.. how do i fix it?

# wget http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
--21:29:39--  http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
   = `ircii-pana-1.0c19.tar.gz'
/usr/libexec/ld-elf.so.1: wget: Undefined symbol
OpenSSL_add_all_algorithms

Thanks again.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/libexec/ld-elf.so.1: wget: UndefinedsymbolOpenSSL_add_all_algorithms

2004-01-14 Thread Simon Gray
 Everytime i do a wget, i get this error.. how do i fix it?
 
 # wget http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
 --21:29:39--  http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
= `ircii-pana-1.0c19.tar.gz'
 /usr/libexec/ld-elf.so.1: wget: Undefined symbol
 OpenSSL_add_all_algorithms

Looks like it's been compiled against something that's changed.

See what:

Have you tried rebuilding wget?

cd /usr/ports/ftp/wget  make deinstall  make reinstall

if that doesn't work you could try building it without ssl support

i think  'make --WITHOUT_SSL  make install'  should work


HTH

Simon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/libexec/ld-elf.so.1: wget: UndefinedsymbolOpenSSL_add_all_algorithms

2004-01-14 Thread Simon Gray
 Everytime i do a wget, i get this error.. how do i fix it?
 
 # wget http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
 --21:29:39--  http://bitchx.org/files/source/ircii-pana-1.0c19.tar.gz
= `ircii-pana-1.0c19.tar.gz'
 /usr/libexec/ld-elf.so.1: wget: Undefined symbol
 OpenSSL_add_all_algorithms

Looks like it's been compiled against something that's changed.

See what you get with:

ls /usr/libexec/ld-elf*


Could always try without ssl support by rebuilding wget?

cd /usr/ports/ftp/wget  make deinstall  make reinstall

if that doesn't work you could try building it without ssl support

i think  'make --WITHOUT_SSL  make install'  should work


HTH

Simon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fetch / wget problem

2003-12-17 Thread Toomas Aas

 From:  Micheal Patterson [EMAIL PROTECTED]
 Date:  Tue, 16 Dec 2003 12:59:03 -0600

 - Original Message - 
 From: Toomas Aas [EMAIL PROTECTED]
 Sent: Tuesday, December 16, 2003 12:38 PM

  I think that firewalls are configured correctly, because I can
  successfully get the file manually, using the 'ftp' command.
 
  However, when I try this command:
 
  fetch ftp://user.name:[EMAIL PROTECTED]/directory/file.ext
 
  I get an error message:
 
  I also tried wget, which succeeds to connect, but then, no matter what
  I do, insists on using passive mode.

 You may be able to do this with a .netrc in the user folder that's running
 the script.

Thanks for the idea, perhaps it would work. But considering that the 
filename to be downloaded is not fixed but needs to be passed to the 
script as a parameter, I think that it's easier to use CURL (as I wrote 
yesterday). Otherwise I would need to dynamically modify the .netrc 
file.

--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* Don't use no double negatives.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


fetch / wget problem

2003-12-16 Thread Toomas Aas
Hi!

I'm trying to write a script which gets a file from remote FTP server.

The FTP username contains dots and this cannot be changed.

There are two firewalls involved, one running on the same server where 
I'm doing this (ipfilter, using ipnat ftp proxy) and one between this 
server and the FTP server. The FTP server itself is in internal network 
using RFC1918 addresses and a port in firewall is being forwarded to 
this server.

I think that firewalls are configured correctly, because I can 
successfully get the file manually, using the 'ftp' command. 

However, when I try this command:

fetch ftp://user.name:[EMAIL PROTECTED]/directory/file.ext

I get an error message: 
fetch: ftp://user.name:[EMAIL PROTECTED]/directory/file.ext:
Host not found.

I suspect that fetch, seeing a dot in username, attempts to 'resolve' 
the entire URL, instead of just the part after @. Is there a known 
workaround to this?

I also tried wget, which succeeds to connect, but then, no matter what 
I do, insists on using passive mode. 

wget ftp://user.name:[EMAIL PROTECTED]/directory/file.ext
Connecting to server.mydomain.com[12.34.56.78]:2100... connected.
Logging in as user.name ... Logged in!
== SYST ... done.== PWD ... done.
== TYPE I ... done.  == CWD /directory ... done.
== PASV ... 
and then the process just hangs.

I suspect it would work if I could somehow tell wget to NOT use passive 
mode. I initially had FTP_PASSIVE_MODE environment variable set, but 
removing this didn't affect wget's behaviour.

Any ideas?
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* RUNTIME ERROR 6D at 417A:32CF : Incompetent user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fetch / wget problem

2003-12-16 Thread Micheal Patterson


- Original Message - 
From: Toomas Aas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 12:38 PM
Subject: fetch / wget problem


 Hi!

 I'm trying to write a script which gets a file from remote FTP server.

 The FTP username contains dots and this cannot be changed.

 There are two firewalls involved, one running on the same server where
 I'm doing this (ipfilter, using ipnat ftp proxy) and one between this
 server and the FTP server. The FTP server itself is in internal network
 using RFC1918 addresses and a port in firewall is being forwarded to
 this server.

 I think that firewalls are configured correctly, because I can
 successfully get the file manually, using the 'ftp' command.

 However, when I try this command:

 fetch ftp://user.name:[EMAIL PROTECTED]/directory/file.ext

 I get an error message:
 fetch: ftp://user.name:[EMAIL PROTECTED]/directory/file.ext:
 Host not found.

 I suspect that fetch, seeing a dot in username, attempts to 'resolve'
 the entire URL, instead of just the part after @. Is there a known
 workaround to this?

 I also tried wget, which succeeds to connect, but then, no matter what
 I do, insists on using passive mode.

 wget ftp://user.name:[EMAIL PROTECTED]/directory/file.ext
 Connecting to server.mydomain.com[12.34.56.78]:2100... connected.
 Logging in as user.name ... Logged in!
 == SYST ... done.== PWD ... done.
 == TYPE I ... done.  == CWD /directory ... done.
 == PASV ...
 and then the process just hangs.

 I suspect it would work if I could somehow tell wget to NOT use passive
 mode. I initially had FTP_PASSIVE_MODE environment variable set, but
 removing this didn't affect wget's behaviour.

 Any ideas?
 --
 Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
 * RUNTIME ERROR 6D at 417A:32CF : Incompetent user



You may be able to do this with a .netrc in the user folder that's running
the script.

In .netrc, you'll have:

machine ftp server name
login loginname
password password

Then you can script it with the exact commands that you'd use to get the
file if you did it manually. For example, if you wanted /etc/test.sh and you
wanted to store it in /root/down and the remote site was ftp.foo.com you'd
do:

Contents of .netrc
---
machine ftp.foo.com
login joe.user
pass password
---

Then, in your script, let's say autofetch.sh you'd have:

#!/bin/sh
ftp  EOF
open ftp.foo.com
cd /etc/
lcd /root/down
ascii
get test.sh
bye
EOF

---

Now, you've got a scripted ftp session from within FreeBSD. As long as the
servernames in the script and .netrc match, ftp will use the info from
.netrc to make the connection. Of course, you'd want to make certain that
the .netrc file is NOT world readable. Perhaps not even group readable if
there are other users of the system.

Hope it helps.

--

Micheal Patterson
TSG Network Administration
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fetch / wget problem

2003-12-16 Thread Toomas Aas
Hi!

  fetch ftp://user.name:[EMAIL PROTECTED]/directory/file.ext
 
 Have you tried using %2E instead of the dot?

This gets me past the resolve problem, but the FTP server doesn't seem 
to like the user called user%2Ename.

Anyway, I found a way that works, using CURL:

curl -P fxp0 \
ftp://user.name:[EMAIL PROTECTED]/directory/file.ext  \
file.ext

The key here was -P interface - without that, CURL also tried to use 
passive mode.

--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* Abstain from wine, women and song; mostly song.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fetch / wget problem

2003-12-16 Thread Lance E. Lott
Just a thought, try escaping the . with a \...

fetch: ftp://user\.name:[EMAIL PROTECTED]/directory/file.ext:

I recently had to do that, and it seemed to work.

Lance

At 12:38 PM 12/16/2003, you wrote:

Hi!

I'm trying to write a script which gets a file from remote FTP server.

The FTP username contains dots and this cannot be changed.

There are two firewalls involved, one running on the same server where
I'm doing this (ipfilter, using ipnat ftp proxy) and one between this
server and the FTP server. The FTP server itself is in internal network
using RFC1918 addresses and a port in firewall is being forwarded to
this server.
I think that firewalls are configured correctly, because I can
successfully get the file manually, using the 'ftp' command.
However, when I try this command:

fetch ftp://user.name:[EMAIL PROTECTED]/directory/file.ext

I get an error message:
fetch: ftp://user.name:[EMAIL PROTECTED]/directory/file.ext:
Host not found.
I suspect that fetch, seeing a dot in username, attempts to 'resolve'
the entire URL, instead of just the part after @. Is there a known
workaround to this?
I also tried wget, which succeeds to connect, but then, no matter what
I do, insists on using passive mode.
wget ftp://user.name:[EMAIL PROTECTED]/directory/file.ext
Connecting to server.mydomain.com[12.34.56.78]:2100... connected.
Logging in as user.name ... Logged in!
== SYST ... done.== PWD ... done.
== TYPE I ... done.  == CWD /directory ... done.
== PASV ...
and then the process just hangs.
I suspect it would work if I could somehow tell wget to NOT use passive
mode. I initially had FTP_PASSIVE_MODE environment variable set, but
removing this didn't affect wget's behaviour.
Any ideas?
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* RUNTIME ERROR 6D at 417A:32CF : Incompetent user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fetch / wget problem

2003-12-16 Thread Toomas Aas

 Just a thought, try escaping the . with a \...

I actually did try that, but it didn't seem to have any effect on the 
end result.

--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* All wiyht.  Rho sritched mg kegboawd awound?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/usr/libexec/ld-elf.so.1: wget: Undefined symbol OpenSSL_add_all_algorithms

2003-11-26 Thread Spades
Dear all,

I keep getting this error on wgetting any file or url..

How do i fix it?

$ wget www.url.com/file.mpg

--00:12:35--  http://www.url.com/file.mpg
   = `index.html.1'
/usr/libexec/ld-elf.so.1: wget: Undefined symbol
OpenSSL_add_all_algorithms

FreeBSD webname.net 4.9-STABLE FreeBSD 4.9-STABLE #0: Sun Nov 23 09:10:24
SGT 2003 [EMAIL PROTECTED]:/usr/src/sys/compile/CONF  i386

Thanks..

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/libexec/ld-elf.so.1: wget: Undefined symbol OpenSSL_add_all_algorithms

2003-11-26 Thread Kris Kennaway
On Thu, Nov 27, 2003 at 12:12:43AM +0800, Spades wrote:
 Dear all,
 
 I keep getting this error on wgetting any file or url..
 
 How do i fix it?
 
 $ wget www.url.com/file.mpg
 
 --00:12:35--  http://www.url.com/file.mpg
= `index.html.1'
 /usr/libexec/ld-elf.so.1: wget: Undefined symbol
 OpenSSL_add_all_algorithms
 
 FreeBSD webname.net 4.9-STABLE FreeBSD 4.9-STABLE #0: Sun Nov 23 09:10:24
 SGT 2003 [EMAIL PROTECTED]:/usr/src/sys/compile/CONF  i386

It looks like you have something wrong with your openssl installation.
Either rebuild your world with COMPAT4X=yes and crypto sources
installed, or install the latest compat4x and openssl packages.

I'm not sure why you'd get an undefined symbol, though (it should
either work or fail outright to find the new libcrypto version) -
perhaps at some point you tried to patch up for a missing library
version by symlinking to an older library?

Kris


pgp0.pgp
Description: PGP signature


About wget in FreeBSD 5.0-p7

2003-07-26 Thread Jun
Hello there.
 
Greetings!!!
 
I would like to ask if how can i fix the error in my wget whenever i run the wget as 
to download any tar file, like:
 
gowee# pkg_add wget-1.8.2_3.tgz
gowee# wget http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-2.9.29.tar.gz
--15:05:06--  http://people.ee.ethz.ch/%7Eoetiker/webtools/mrtg/pub/mrtg-2.9.29.tar.gz
   = `mrtg-2.9.29.tar.gz'
/usr/libexec/ld-elf.so.1: wget: Undefined symbol OPENSSL_add_all_algorithms_noconf
gowee#
 
Thanks and More Power.
 
Jun Vidal (FreeBSD - the Power to Serve)


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wget error

2003-07-11 Thread Spades
   weird, i have this error msg after i recompiled my kernel while doing
wget on ANY files i try to get:

$ wget http://fun.s-one.net.sg:8080/pub/movies/Matrix_Reloaded_Spoof.wmv
--07:20:05-- 
http://fun.s-one.net.sg:8080/pub/movies/Matrix_Reloaded_Spoof.wmv
   = `Matrix_Reloaded_Spoof.wmv'
/usr/libexec/ld-elf.so.1: wget: Undefined symbol
OpenSSL_add_all_algorithms

What should I do to fix this?

Spades

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


wget

2003-07-08 Thread Al-Rashid Tamara Contractor USTC
I'm trying to download the wget networking utility on FreeBSD 4.8 and I'm
continuously receiving the host not found error message.  What am I doing
wrong?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wget

2003-07-08 Thread Rus Foster
On Tue, 8 Jul 2003, Al-Rashid Tamara Contractor USTC wrote:

 I'm trying to download the wget networking utility on FreeBSD 4.8 and I'm
 continuously receiving the host not found error message.  What am I doing
 wrong?

Hi,
If you are getting host not found it either meants that the hostname it is
looking up e.g. www.freebsd.org is wrong or does not exist. You might also
want to check /etc/resolv.conf. If you are just using wget to download one
file try the FreeBSD command fetch which is similar for single files

Rgds

Rus

 --
www: http://www.65535.net   | Hosting - Shell Accounts
MSNM: [EMAIL PROTECTED] | Virtual Servers from just $15/mo
e: [EMAIL PROTECTED]   | Community: http://www.65535.org
t: +44 (0) 7092016595   | 10% Donation on every FreeBSD product
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems running wget on FreeBSD 4.7

2003-03-26 Thread Paul Hamilton
Just out of interest to anyone trawling the archives, I have found a
work-around.

Instead of using:
ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe;

Use this instead:
ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4*.exe;

Test ok on Wget 1.8.2_1!

Cheers,

Paul Hamilton

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul Hamilton
Sent: Monday, 24 March 2003 9:31 PM
To: Freebsd-Questions
Subject: Problems running wget on FreeBSD 4.7


Hi all,

I have two different versions of wget on different FreeBSD 4.7 (upgraded)
servers.  They all run, but one of them:

# pkg_info -r wget-1.8.2_1

Information for wget-1.8.2_1:

Depends on:
Dependency: libiconv-1.8_1
Dependency: expat-1.95.5
Dependency: gettext-0.11.5_1

has problems with  the '--glob=on' option.  I use a script to download
McAfee files, the relevant line is:

/usr/local/bin/wget -nr --glob=on -N --passive-ftp
ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe;

Which when run gives:

-
--21:19:27--  ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe
   = `.listing'
Resolving ftp.nai.com... done.
Connecting to ftp.nai.com[161.69.201.238]:21... connected.
Logging in as anonymous ... Logged in!
== SYST ... done.== PWD ... done.
== TYPE I ... done.  == CWD /pub/antivirus/superdat/intel ... done.
== PASV ... done.== LIST ... done.

[ =  ] 157
153.32K/s

21:19:31 (153.32 KB/s) - `.listing' saved [157]

--21:19:31--  ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe
   = `sdat4???.exe'
== CWD not required.
== PASV ... done.== RETR sdat4 ...
No such file `sdat4'.
-

Which when run using wget-1.7_3 I get:

-
--21:21:39--  ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe
   = `.listing'
Connecting to ftp.nai.com:21... connected!
Logging in as anonymous ... Logged in!
== SYST ... done.== PWD ... done.
== TYPE I ... done.  == CWD /pub/antivirus/superdat/intel ... done.
== EPSV ...
Cannot initiate EPSV transfer.
== PASV ... done.== LIST ... done.

0K@ 153.32 KB/s

21:21:45 (76.66 KB/s) - `.listing' saved [157]

Removed `.listing'.
Remote file no newer than local file `sdat4253.exe' -- not retrieving.
-
Which is ok, as I already have downloaded it.

My question is (eventually), has the globing function changed between the
different versions, or is the globing function broken?  Or am I missing
something deeper?

Cheers,

Paul Hamilton


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems running wget on FreeBSD 4.7

2003-03-24 Thread Paul Hamilton
Hi all,

I have two different versions of wget on different FreeBSD 4.7 (upgraded)
servers.  They all run, but one of them:

# pkg_info -r wget-1.8.2_1

Information for wget-1.8.2_1:

Depends on:
Dependency: libiconv-1.8_1
Dependency: expat-1.95.5
Dependency: gettext-0.11.5_1

has problems with  the '--glob=on' option.  I use a script to download
McAfee files, the relevant line is:

/usr/local/bin/wget -nr --glob=on -N --passive-ftp
ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe;

Which when run gives:

-
--21:19:27--  ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe
   = `.listing'
Resolving ftp.nai.com... done.
Connecting to ftp.nai.com[161.69.201.238]:21... connected.
Logging in as anonymous ... Logged in!
== SYST ... done.== PWD ... done.
== TYPE I ... done.  == CWD /pub/antivirus/superdat/intel ... done.
== PASV ... done.== LIST ... done.

[ =  ] 157
153.32K/s

21:19:31 (153.32 KB/s) - `.listing' saved [157]

--21:19:31--  ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe
   = `sdat4???.exe'
== CWD not required.
== PASV ... done.== RETR sdat4 ...
No such file `sdat4'.
-

Which when run using wget-1.7_3 I get:

-
--21:21:39--  ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe
   = `.listing'
Connecting to ftp.nai.com:21... connected!
Logging in as anonymous ... Logged in!
== SYST ... done.== PWD ... done.
== TYPE I ... done.  == CWD /pub/antivirus/superdat/intel ... done.
== EPSV ...
Cannot initiate EPSV transfer.
== PASV ... done.== LIST ... done.

0K@ 153.32 KB/s

21:21:45 (76.66 KB/s) - `.listing' saved [157]

Removed `.listing'.
Remote file no newer than local file `sdat4253.exe' -- not retrieving.
-
Which is ok, as I already have downloaded it.

My question is (eventually), has the globing function changed between the
different versions, or is the globing function broken?  Or am I missing
something deeper?

Cheers,

Paul Hamilton


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


script runs ok, however cron job stalls with wget

2003-02-27 Thread Paul Hamilton
Hi,

I have the following simple test script:-


#! /bin/sh
cd /root/bin/
/usr/local/bin/wget --glob=on -N --passive-ftp
ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe;



This should download the latest McAfee superdat file, ie: sdat4250.exe into
the /root/bin dir.

When I run this script manually, it runs fine.  When I have it run via a
cron job, it stalls.  This is what I see in 'ps -ax'


 7673  ??  I  0:00.00 cron: running job (cron)
 7674  ??  Is 0:00.00 /bin/sh -c /root/bin/test.sh
 7675  ??  I  0:00.00 /bin/sh /root/bin/test.sh
 7676  ??  I  0:00.01 /usr/local/bin/wget --glob=on -N --passive-ftp
ftp://ftp.nai.com/pub/antivirus/sup

Any idea why this might be so?  I have tried using an ftp command, but the
same thing happens.  I have tried exporting a path that includes the
/usr/local/bin and the /root/bin directories, however, that didn't help.

Any ideas?

Cheers,

Paul Hamilton





To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


need webserver advice regarding wget

2002-07-17 Thread default

Hello,

I run some FreeBSD webservers and recently a client of mine has asked that I
install wget. I know that this is a fairly common application, but I am not
very familiar with it.

I just wanted to ask you guy's advice on whether or not there are any
security concerns at all that may come with this, or any other reason that
one might not want this on a shared webserver?

Thanks,

Jordan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: need webserver advice regarding wget

2002-07-17 Thread Jim Mock

On Wednesday, July 17, 2002, at 12:52 PM, default wrote:

 Hello,

 I run some FreeBSD webservers and recently a client of mine has 
 asked that I
 install wget. I know that this is a fairly common application, 
 but I am not
 very familiar with it.

 I just wanted to ask you guy's advice on whether or not there are any
 security concerns at all that may come with this, or any other 
 reason that
 one might not want this on a shared webserver?

Unless they want some functionality specific to wget, they 
should be able to use fetch (which is in the base system).  It 
does pretty much the same thing as wget, but chances are they 
don't know it exists.

- jim


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message