<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
centos-bounces@centos.org [mailto:centos-bounces@centos.org] <B>On Behalf Of
</B>Rogelio<BR><B>Sent:</B> November 22, 2007 12:08 PM<BR><B>To:</B> CentOS
mailing list<BR><B>Subject:</B> [CentOS] wget'ing files relative
paths?<BR><BR></FONT></DIV>I'm trying to wget some very specific files off a
web page, but some of the paths are relative paths (e.g. ../path/to/file)
rather than abosolute (e.g. <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://direct/path/to/file" target=_blank>http://direct/path/to/file
</A>). Obviously, when wget gets to that part, it craps out...
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=107585521-22112007>I am
a little unsure on what you are trying to do...are you mirroring a certain
section of a website, and the relative paths are causing problems? that would
be pretty strange, because I am pretty sure that i have done that before and
not had any problems (just using wget -m <A
href="http://hostname/path/I/care/about/file.html">http://hostname/path/I/care/about/file.html</A>).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=107585521-22112007>or
do you have a list of URL's you are trying to grab (say in a file or
something), that only have the relative paths? something like
this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007> <A
href="http://direct/path/to/file1">http://direct/path/to/file1</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007> <A
href="http://direct/path/to/file2">http://direct/path/to/file2</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007><SPAN class=107585521-22112007> <A
href="http://direct/path/to/file3">http://direct/path/to/file3</A></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007><SPAN class=107585521-22112007><SPAN
class=107585521-22112007> <A
href="http://direct/path/to/file4">http://direct/path/to/file4</A></SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007><SPAN class=107585521-22112007><SPAN
class=107585521-22112007> ../../file5</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007><SPAN class=107585521-22112007><SPAN
class=107585521-22112007> ../../file6</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007><SPAN class=107585521-22112007><SPAN
class=107585521-22112007></SPAN></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007><SPAN class=107585521-22112007><SPAN
class=107585521-22112007></SPAN></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=107585521-22112007>if
possible, it would be great if you could show the exact command line that you
are using, along with the exact error message.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=107585521-22112007></SPAN></FONT> </DIV>
<DIV>Is there a switch in wget (in CentOS 5 - latest wget package) that lets
me maintain this session? I tried some of the options here (<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.gnu.org/software/wget/manual/html_node/HTTP-Options.html"
target=_blank>
http://www.gnu.org/software/wget/manual/html_node/HTTP-Options.html </A>), but
it's not working, and I'm hoping someone here might point me in the right
direction.<SPAN class=107585521-22112007><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=107585521-22112007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=107585521-22112007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=107585521-22112007><FONT face=Arial color=#0000ff
size=2>Mike</FONT> </SPAN></DIV></BLOCKQUOTE></BODY></HTML>