• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

How to control where wget puts downloaded files?

Can someone tell me how I can wget files into a specific location on the receiving server? I'm running a shell script in cron to wget a file, but for the life of me I can't %^&*) figure where its putting the files! :(

0
smarden
Asked:
smarden
  • 3
1 Solution
 
BarthaxCommented:
Put the call to wget into a batch file & use a simple pair of commands to get into the working directory of your choice.  So if you want to get to "w:\myweb files" use:

w:
cd "\myweb files"
wget <your parameters>
0
 
BarthaxCommented:
Personally, I use wget in a central location and have a series of scripts (batch & cli-php) to automate the download, zipping, etc of the files into various locations.
0
 
smardenAuthor Commented:
Ok, you've confirmed I'm taking the right approach. I tried putting CD command into script before WGET but it failed. Must check I got the path exactly right ... ho hum ...

Thanks Barthax
0
 
BarthaxCommented:
No problem. :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now