bugGNU Wget - Bugs: bug #36138, Adding -O option =>...

 
 

bug #36138: Adding -O option => ""Cannot specify both -k and -O if multiple URLs are given..." error

Submitted by:  None
Submitted on:  Mon 09 Apr 2012 01:42:59 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: thierryboOriginator Email: -unavailable-
Open/Closed: OpenRelease: 1.12
Operating System: GNU/LinuxReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 10 Apr 2012 10:34:02 PM UTC, comment #4:

Thanks,

I did not notices these modified lines on these two computer.

Anonymous
Tue 10 Apr 2012 08:17:02 PM UTC, comment #3:

Thanks for providing wgetrc file

In the .wgetrc the options -r, -p and -k are turned

i.e.

recursive = on (-r)
convert_links = on (-k)
page_requisites = on (-p)

because of this options the command

wget --output-document=./out.txt <URL>

has become

wget --output-document=./out.txt <URL> -r -p -k

The combination of -O -k with -p or -r is not supported.

Please refer manual

Sasikantha babu <sasikanth19>
Tue 10 Apr 2012 05:43:37 PM UTC, comment #2:

here is my .wgetrc :

###
### Sample Wget initialization file .wgetrc
###

## You can use this file to change the default behaviour of wget or to
## avoid having to type many many command-line options. This file does
## not contain a comprehensive list of commands -- look at the manual
## to find out what you can put into this file.
##
## Wget initialization file can reside in /etc/wgetrc
## (global, for all users) or $HOME/.wgetrc (for a single user).
##
## To use the settings in this file, you will have to uncomment them,
## as well as change them, in most cases, as the values on the
## commented-out lines are the default values (e.g. "off").

##
## Global settings (useful for setting up in /etc/wgetrc).
## Think well before you change them, since they may reduce wget's
## functionality, and make it behave contrary to the documentation:
##

# You can set retrieve quota for beginners by specifying a value
# optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
# default quota is unlimited.
#quota = inf

# You can lower (or raise) the default number of retries when
# downloading a file (default is 20).
#tries = 20

# Lowering the maximum depth of the recursive retrieval is handy to
# prevent newbies from going too "deep" when they unwittingly start
# the recursive retrieval. The default is 5.
#reclevel = 5

# By default Wget uses "passive FTP" transfer where the client
# initiates the data connection to the server rather than the other
# way around. That is required on systems behind NAT where the client
# computer cannot be easily reached from the Internet. However, some
# firewalls software explicitly supports active FTP and in fact has
# problems supporting passive transfer. If you are in such
# environment, use "passive_ftp = off" to revert to active FTP.
#passive_ftp = off
passive_ftp = on

# The "wait" command below makes Wget wait between every connection.
# If, instead, you want Wget to wait only between retries of failed
# downloads, set waitretry to maximum number of seconds to wait (Wget
# will use "linear backoff", waiting 1 second after the first failure
# on a file, 2 seconds after the second failure, etc. up to this max).
waitretry = 10

##
## Local settings (for a user to set in his $HOME/.wgetrc). It is
## highly undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
##
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.
##

# Set this to on to use timestamping by default:
#timestamping = off

# It is a good idea to make Wget send your email address in a `From:'
# header with your request (so that server administrators can contact
# you in case of errors). Wget does not send `From:' by default.
#header = From: Your Name <username@site.domain>

# You can set up other headers, like Accept-Language. Accept-Language
# is not sent by default.
#header = Accept-Language: en

# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

# If you do not want to use proxy at all, set this to off.
#use_proxy = on

# You can customize the retrieval outlook. Valid options are default,
# binary, mega and micro.
#dot_style = default

# Setting this to off makes Wget not download /robots.txt. Be sure to
# know exactly what /robots.txt is and how it is used before changing
# the default!
#robots = on

# It can be useful to make Wget wait between connections. Set this to
# the number of seconds you want Wget to wait.
#wait = 0

# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#dirstruct = off

# You can turn on recursive retrieving by default (don't do this if
# you are not sure you know what it means) by setting this to on.
#recursive = off
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
recursive = on

# To always back up file X as X.orig before converting its links (due
# to -k / --convert-links / convert_links = on having been specified),
# set this variable to on:
#backup_converted = off

# To have Wget follow FTP links from HTML files by default, set this
# to on:
#follow_ftp = off

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
convert_links = on
html_extension = on
no_parent = on
page_requisites = on

Anonymous
Mon 09 Apr 2012 09:09:03 PM UTC, comment #1:

I tried to simulate this bug, I didn't face any issue. Please find the logs posted below (Output logs)

I could see there is wget user start up file. Can you please post or check your User startup file located "/home/thierrybo/.wgetrc"?

Output logs
-----------

[root@Shash trunk]# wget --output-document=./out.txt "http://repository.playonlinux.com/update_mark.txt"
--2012-04-10 02:24:08-- http://repository.playonlinux.com/update_mark.txt
Resolving repository.playonlinux.com... 91.121.5.64
Connecting to repository.playonlinux.com|91.121.5.64|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10 [text/plain]
Saving to: “./out.txt”

100%[===================================================================================================================>] 10 --.-K/s in 0s

2012-04-10 02:24:08 (557 KB/s) - “./out.txt” saved [10/10]

[root@Shash trunk]# wget --output-document=./out.txt "http://repository.playonlinux.com/update_mark.txt" -k
--2012-04-10 02:28:27-- http://repository.playonlinux.com/update_mark.txt
Resolving repository.playonlinux.com... 91.121.5.64
Connecting to repository.playonlinux.com|91.121.5.64|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10 [text/plain]
Saving to: “./out.txt”

100%[===================================================================================================================>] 10 --.-K/s in 0s

2012-04-10 02:28:27 (786 KB/s) - “./out.txt” saved [10/10]

Converted 0 files in 0 seconds.
[root@Shash trunk]# wget -k --output-document=./out.txt "http://repository.playonlinux.com/update_mark.txt"
--2012-04-10 02:28:35-- http://repository.playonlinux.com/update_mark.txt
Resolving repository.playonlinux.com... 91.121.5.64
Connecting to repository.playonlinux.com|91.121.5.64|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10 [text/plain]
Saving to: “./out.txt”

100%[===================================================================================================================>] 10 --.-K/s in 0s

2012-04-10 02:28:35 (781 KB/s) - “./out.txt” saved [10/10]

Converted 0 files in 0 seconds

WGET version
------------

[root@Shash trunk]# wget --version
GNU Wget 1.12 built on linux-gnu.

+digest +ipv6 +nls +ntlm +opie +md5/openssl +https -gnutls +openssl
-iri

Wgetrc:
/etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
-DLOCALEDIR="/usr/share/locale" -I. -I../lib -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables
Link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=atom -fasynchronous-unwind-tables -lssl -lcrypto -ldl -lz
/usr/lib/libssl.so /usr/lib/libcrypto.so -ldl -lrt ftp-opie.o
openssl.o http-ntlm.o gen-md5.o ../lib/libgnu.a

Sasikantha babu <sasikanth19>
Mon 09 Apr 2012 01:42:59 PM UTC, original submission:

simple command OK :

wget "http://repository.playonlinux.com/update_mark.txt"

adding --output-document=./out.txt

wget --output-document=./out.txt "http://repository.playonlinux.com/update_mark.txt"

result :

Cannot specify both -k and -O if multiple URLs are given, or in combination with -p or -r. See the manual for details.

wget -V
GNU Wget 1.12 compilé sur linux-gnu.

+digest +ipv6 +nls +ntlm +opie +md5/openssl +https -gnutls +openssl
-iri

Wgetrc :
/home/thierrybo/.wgetrc (utilisateur)
/etc/wgetrc (système)
Locale : /usr/share/locale
Compilation : gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
-DLOCALEDIR="/usr/share/locale" -I. -I../lib -g -O2 -DNO_SSLv2
-D_FILE_OFFSET_BITS=64 -O2 -g -Wall
Lien : gcc -g -O2 -DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -O2 -g -Wall
-Wl,-Bsymbolic-functions /usr/lib/libssl.so /usr/lib/libcrypto.so
-ldl -lrt ftp-opie.o openssl.o http-ntlm.o gen-md5.o
../lib/libgnu.a

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sasikanth19 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup