[PLUG] Simple wget question

Ron Chmara ron at opus1.com
Sat Mar 15 03:11:25 UTC 2008


kurt braget wrote:
> If I run wget on a file (or series of files), how do I specify what
> directory I want the loaded file to go to? The way I understand it is that
> wget loads the file into whatever dir it was run from. But I don't want that
> behavior, as I am giving somebody else the command to run as a cron job. I
> would like to be able to specify the dir from root, like
> /home/something/download. 
       -P prefix
       --directory-prefix=prefix
           Set directory prefix to prefix.  The directory prefix is the 
direc-
           tory where all other files and subdirectories will be saved to,
           i.e. the top of the retrieval tree.  The default is . (the 
current
           directory).


-Bop





More information about the PLUG mailing list