Dear wget developers

I'm using wget to mirro a web site.

In my C program, wget is excuted as follows.

        while (1) {
                system("wget -O foo http://www.aaa.com";);  // example web site
                sleep(2);
        }

It almost always works.. But

Question 1: wget sometimes gets empty file (ls -l says 0 byte).
             In what condition this happens?


Question 2: wget often waits for few minutes (rarely about 20 minutes) saying
            
        "waiting for connection....."

        when this can happen?  Is there any solution for this?


Thanks in advance.
-bj

Reply via email to