Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WGET for FTP

Status
Not open for further replies.

aas1611

Programmer
Joined
Dec 14, 2001
Messages
184
Location
DE
Hi,

I've used this code several weeks and worked everytime:

wget -nc -q -P /KINKPC/ ftp://10.0.1.2/*

As you can see, the code is copying files and directories from 10.0.1.2 to the local server to be put under directory KINKPC ( which would be created with -P , I think).

But suddenly, today this code doesn't work. What could possibly be the problem? Could it be, that the server is full? In this case, how can I see the capacity? Or is there a better/another code?

And when I try to remove KINKPC with

rm /KINKPC/*

it says that the file or directory can not be found, although it exists.

I'm using Linux Debian, by the way.

Thanks.


Andre
 
df -k /KINKPC to see if it is full.

rm /KINKPC/* will try to remove all the files in that directory, not the directory itself. Use rmdir /KINKPC to remove it completely.

Annihilannic.
 
I've checked, and it is not full. I mean, the local server still has 40 GB, while the directory that is to be copied only has 13 GB.

So something wrong with my WGET command. What confuses me is, it has worked several times before. I do this once every two weeks.

When there is an error, there should be an error message, right?
But in my case, after I run the following wget command:

wget -nc -q -P /KINKPC/ ftp://10.0.1.2/*

one second later, it is done as if it was running correctly (no message) but no files were copied. Normally it takes almost 2 hours to do so.

I have also pinged the server and the connection between the two servers are fine.

Any clues, anyone?
 
Have you tried adding a --verbose and removing -q for more detailed information?

If the files already exist in /KINKPC (which I presume they don't judging by your previous query about rm) the -nc option will make it do nothing.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top