This works well when my computer is linked to the Net. But when it's not, this command just hangs. I thought putting the timemout = 3 will make this command stop in 3 seconds, but it doesn't. Does anyone know what the exact command is to make this command stop after a few seconds if it can't make a connection to the Net?
Also, when this command runs successfully, it creates a file called "index.html" What do I need to do so that it doesn't automatically create the file "index.html" in my local directory? Thanks.
The --timeout switch should usually work. If you're really sure that it doesn't, you can always send the command to the background and kill it after some time, eg.