Results 1 to 2 of 2
I use wget to retrieve a webpage
like the below
but after "
2012-10-30 14:37:42 (1.52 MB/s) - “search_result” saved [108588]"
wget is stuck there, unless I enter "Enter" key
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-30-2012 #1Just Joined!
- Join Date
- May 2012
- Posts
- 82
wget stuck
I use wget to retrieve a webpage
like the below
but after "
2012-10-30 14:37:42 (1.52 MB/s) - “search_result” saved [108588]"
wget is stuck there, unless I enter "Enter" key
then
it will show
[1]+ Done wget --timeout=1 -O search_result pig - YouTube
I searched for the process wget but can't get the process_id
it seems it has stopped but stuck
how to deal with this?
Code:ps -eaf|grep "wget"
Code:[esolve@meliy temp]$ wget --timeout=1 -O search_result http://www.youtube.com/results?search_query=pig&page=5 [1] 7194 [esolve@meliy temp]$ --2012-10-30 14:37:42-- http://www.youtube.com/results?search_query=pig Resolving www.youtube.com... 173.194.34.46, 173.194.34.32, 173.194.34.33, ... Connecting to www.youtube.com|173.194.34.46|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: “search_result” [ <=> ] 108,588 --.-K/s in 0.07s 2012-10-30 14:37:42 (1.52 MB/s) - “search_result” saved [108588] [1]+ Done wget --timeout=1 -O search_result http://www.youtube.com/results?search_query=pig [esolve@meliy temp]$
- 10-30-2012 #2
You need to quote the URL, otherwise the shell will evaluate it.
The & is the reason why it sends wget in the background.You must always face the curtain with a bow.


Reply With Quote
