?
Solved

How to control where wget puts downloaded files?

Posted on 2005-03-22
4
Medium Priority
?
292 Views
Last Modified: 2013-12-16
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
Comment
Question by:smarden
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
Barthax earned 150 total points
ID: 13604541
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
 
LVL 19

Expert Comment

by:Barthax
ID: 13604557
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
 

Author Comment

by:smarden
ID: 13604614
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
 
LVL 19

Expert Comment

by:Barthax
ID: 13604668
No problem. :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month7 days, 20 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question