Linux.com

Author Message
Joined: Dec 24, 2007
Posts: 3
Other Topics
Posted Jul 15, 2008 at 1:10:13 PM
Subject: non-blocking version of curl/wgets

Hi All,

I know about two linux commands (wgets/curl) that are used to get documents/files from any HTTP server.But as you all aware that these are blocking commands, which means if we will use these two in our code then we will get stuck till we receive any respose from server.
Now i need to know, whether there is a non-blocking command that can be used to get documents/files from HTTP server, or Is there any option that i can use with these two commands to make these commands non-blocking.

Thanks in All,

Back to top Profile Email Website
tophandcwby
Joined Apr 10, 2008
Posts: 63

Other Topics
Posted: Jul 22, 2008 12:06:13 PM
Subject: non-blocking version of curl/wgets

Try the -T option of wget to set a timeout.

Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya