Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: wget stuck

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    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?
    ps -eaf|grep "wget"
    [esolve@meliy temp]$ wget --timeout=1 -O search_result 
    [1] 7194
    [esolve@meliy temp]$ --2012-10-30 14:37:42--
    Resolving,,, ...
    Connecting to||: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
    [esolve@meliy temp]$

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts