LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-28-2007, 03:37 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
wget from remote index.htm in the linux box


Hi,

I downloaded a webpage, saved it into my disk, and would like to use wget on the zip file that contains.

I would like it to read this remote htm file in my harddisk, and then to get it from internet.
wget works only with pages in html ? I cannot believe

thanks for any infos !
 
Old 10-28-2007, 07:52 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Please restate the question. I do not understand what you are trying to do.

wget can grab any file from the internet you point it at.. I grab zip and executable files with it all the time. (nVidia driver for instance from the command line)

Last edited by farslayer; 10-28-2007 at 07:53 PM.
 
Old 10-29-2007, 02:08 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by farslayer View Post
Please restate the question. I do not understand what you are trying to do.

wget can grab any file from the internet you point it at.. I grab zip and executable files with it all the time. (nVidia driver for instance from the command line)
An other way:

I have a webpage that downloaded in my /tmp/index.htm

there is inside some freewares to donwnload (direct link!!, nota)
sooo if I do :
Code:
wget -A.zip -l1 -r http://www.balalalkjfkdlsjqfdl.com
it works

If now I do :
Code:
wget -A.zip -l1 -r /tmp/index.htm
no way ...

Would you have any ideas ?
thanks a lot
 
Old 10-29-2007, 02:18 PM   #4
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by frenchn00b View Post
An other way:

I have a webpage that downloaded in my /tmp/index.htm

there is inside some freewares to donwnload (direct link!!, nota)
sooo if I do :
Code:
wget -A.zip -l1 -r http://www.balalalkjfkdlsjqfdl.com
it works

If now I do :
Code:
wget -A.zip -l1 -r /tmp/index.htm
no way ...

Would you have any ideas ?
thanks a lot
While I've not tested it, I think that wget needs to get items from a web server. In other words you can't just "wget /some/file" and expect it to behave the same as "wget http://some/file".

If you want it to work locally, install a webserver, put the html file in the webserver path, then "wget http://localhost/some/file"

That said, if all you're trying to do is parse links out of a file & wget them, there are better ways that installing a webserver just so you can use wget recursively.

Last edited by BrianK; 10-29-2007 at 02:19 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the default webpage configuration from index.php to index.htm, etc meema Linux - Server 4 08-22-2008 09:06 PM
index.htm on apache redice Linux - Software 2 04-30-2006 03:09 PM
index.htm doesn't open instead it show up merlin740 LinuxQuestions.org Member Success Stories 2 10-04-2004 12:08 PM
Help with Apache & index.htm idev Linux - Networking 3 09-18-2003 09:58 AM
Help with Apache & index.htm joe_dejesus Linux - Networking 9 08-29-2001 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration