Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-16-2004, 11:15 AM   #1
LQ Newbie
Registered: Sep 2003
Distribution: Fedora Core 3
Posts: 23

Rep: Reputation: 15
Question about wget

Is there a way I can specify a path to download a file to using wget? Or do I have to cd to that directory first? I am trying to write a script that will download certain files from my server and put them in a specified directory. any help and suggestions would be great. Thanks!
Old 06-16-2004, 11:21 AM   #2
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I think the option is -P

You need to look at "man wget". THere are a zillion options for it.
Old 06-16-2004, 11:36 AM   #3
LQ Newbie
Registered: Sep 2003
Distribution: Fedora Core 3
Posts: 23

Original Poster
Rep: Reputation: 15
Yeah, I saw there were a zillion options. It is -P. I must have skipped over it because it said "PREFIX". I went through the man a few times before coming here. Lack of observation on my part. Thanks for the help. If only I'd read a little deeper into it. This is what it shows.

Set directory prefix to PREFIX. The "directory prefix" is the
directory where all other files and subdirectories will be saved
to, i.e. the top of the retrieval tree. The default is `.' (the
current directory).

Thanks again. =]


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wget question kpachopoulos Linux - General 1 07-23-2005 10:00 AM
wget question JockVSJock Linux - Newbie 2 06-02-2005 12:47 PM
wget question Jestrik Linux - Software 4 05-01-2005 07:41 PM
wget question Yohhan Linux - Software 1 05-05-2004 07:49 PM
wget question ziggie216 Linux - Software 0 10-12-2003 12:02 PM

All times are GMT -5. The time now is 09:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration