LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-16-2004, 11:15 AM   #1
sdouble
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
Donboy
Member
 
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
sdouble
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.

`-P PREFIX'
`--directory-prefix=PREFIX'
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. =]
 
  


Reply


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 07:09 AM.

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