Weptile
Weptile

Reputation: 104

cron job to update a file from ftp

I tried something like: wget ftp://username:[email protected]/bla/blabla.txt -x /home/weptile/public_html/bla/blabla.txt

Appereantly -x writes the output :) I thought it was overwriting the file I need.

So what I'm trying to do is do daily updates on blabla.txt in this specific subdirectory from an external ftp file. I want to get the file from ftp and overwrite the old file on my server.

Upvotes: 0

Views: 910

Answers (1)

orlp
orlp

Reputation: 117671

Use wget -N to overwrite existing files.


If you get stuck on stuff like this, try man wget or heck, even Google.

Upvotes: 1

Related Questions