bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] agent-string and background


From: Micah Cowan
Subject: Re: [Bug-wget] agent-string and background
Date: Sat, 14 Mar 2009 11:54:33 -0700
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

5H wrote:
> Hi.
> I need to download a file from a site that denies wget, so I changed 
> the “agent-string” using the “-U” option. In this way I can download the 
> file, but I have another problem now.
> Using “-U” option wget works in background, but I need it does not because I 
> use it inside a bash script that should wait the end of wget process.
> How can I change the “agent-string” avoiding the background working mode?
> Thank you very much.

I suspect that you're forgetting to quote the URL you give to Wget.
Don't forget that & is a special shell character meaning "run this
command in the background". If your URL includes those, be sure to quote it.

-- 
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]