Click here to get back home

Script for migrating HTML tree into a single directory ?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Script for migrating HTML tree into a single directory ? Pan Am 09-23-2005
Get Chitika Premium
Posted by Pan Am on September 23, 2005, 10:41 am
Please log in for more thread options


My Web hosting service does not support multiple directories...
Can anyone suggest a Unix script that traverses a HTML tree and
produces a working "single directory" version of the same?

TIA

Pan Am

Posted by Gunnar Hjalmarsson on September 23, 2005, 10:54 am
Please log in for more thread options


Pan Am wrote:
> My Web hosting service does not support multiple directories...
> Can anyone suggest a Unix script that traverses a HTML tree and
> produces a working "single directory" version of the same?

Don't know of any such script, but changing hosting service appears to
be a much better solution...

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Posted by Stan Brown on September 23, 2005, 1:13 pm
Please log in for more thread options


On Fri, 23 Sep 2005 10:41:50 +0200 in
comp.infosystems.www.authoring.html, Pan Am favored us with...
> My Web hosting service does not support multiple directories...

Frankly, that statement stuns me. Or are you using some "hosting
service" that will wrap your actual pages in a lot of ads and
Javascript and similar crap?

> Can anyone suggest a Unix script that traverses a HTML tree and
> produces a working "single directory" version of the same?

It would be hard to do, unless you can guarantee up front that
different directories don't contain files with the same names.

But really, Web hosting isn't expensive these days, and any
"service" that limits you to a single directory is targeted at the
lower end. Since you have enough pages that you want a script because
hand editing is too cumbersome, you're really much better off with a
better host.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you

Posted by John Bokma on September 23, 2005, 5:39 pm
Please log in for more thread options



> But really, Web hosting isn't expensive these days, and any
> "service" that limits you to a single directory is targeted at the
> lower end. Since you have enough pages that you want a script because
> hand editing is too cumbersome, you're really much better off with a
> better host.

Yup, with your own domain name like 19.95 USD/year (!)
(http://hostingforabuck.com/ )

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html


Posted by Pan Am on September 26, 2005, 9:13 am
Please log in for more thread options


On Fri, 23 Sep 2005 13:13:35 -0400, Stan Brown wrote:

> Frankly, that statement stuns me. Or are you using some "hosting
> service" that will wrap your actual pages in a lot of ads and
> Javascript and similar crap?

not really... having very limited needs I use a free service: no
ads, limited space, single directory. Very basic, but ok for me.

> It would be hard to do, unless you can guarantee up front that
> different directories don't contain files with the same names.
> But really, Web hosting isn't expensive these days, and any
> "service" that limits you to a single directory is targeted at the
> lower end. Since you have enough pages that you want a script because
> hand editing is too cumbersome, you're really much better off with a
> better host.

The script could prefix filenames to avoid duplications...
Yet, if I cannot find it around I will look into paid services.

Thank you,

SJ




Similar ThreadsPosted
How to find out un-referenced webpages,images and files in web pages directory tree ? December 6, 2007, 6:15 am
Could HTML and XHTML be characterized by a DOM tree? January 9, 2005, 8:37 am
Directory "chooser" for HTML? December 8, 2004, 3:05 pm
links to current directory in html April 24, 2006, 9:24 am
Migrating from MSIE to Mozilla August 1, 2005, 7:25 am
Migrating to XHTML: empty elements July 9, 2005, 12:55 pm
Can you break a single HTML file into multiple pages like PEGHELP for Pocket PC does? July 27, 2004, 1:49 pm
FrontPage HTML in a Perl script December 24, 2004, 8:18 am
Writing a "Hello world" HTML page from perl script ? June 11, 2006, 4:00 am
referencing the index.html page from another page in the same directory July 26, 2004, 12:48 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap