473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Script for migrating HTML tree into a single directory ?

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
Sep 23 '05 #1
7 1868
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
Sep 23 '05 #2
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/200..._wont_help_you
Sep 23 '05 #3
Stan Brown <th************@fastmail.fm> wrote:
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

Sep 23 '05 #4
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

Sep 26 '05 #5
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?


Not perl but "wget --no-directories ..." might do the job.
Sep 26 '05 #6
Pertti Kosunen wrote:
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?


Not perl but "wget --no-directories ..." might do the job.


Such a limited hosting account does most likely not offer shell access...

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Sep 26 '05 #7
Gunnar Hjalmarsson <no*****@gunnar.cc> wrote:
Pertti Kosunen wrote:
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?


Not perl but "wget --no-directories ..." might do the job.


Such a limited hosting account does most likely not offer shell access...


The user did ask for a unix script.

But anyway, you can run wget anywhere, and then transfer the results to the
web host.

miguel
--
Hit The Road! Photos from 36 countries on 5 continents: http://travel.u.nu
Latest photos: Queens Day in Amsterdam; the Grand Canyon; Amman, Jordan
Sep 26 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Sticks | last post by:
ok... im not quite sure how to describe my problem. i have a php script that runs through my entire php site and writes the resulting output to html files. this is necessary as the nature of the...
12
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to...
5
by: Shalen chhabra | last post by:
Hey, Can anyone give me a snippet for running a python program over all the files in the directory. For ex: I have ten files in a directory and I want to run a python program against all of...
3
by: Eugen Gulinsky | last post by:
Hello guys, I am having problems trying to migrate our MSXML4-compatible stylesheets containing large msxsl:script blocks to a formate understandable by System.Xml:Xsl.XslTransform. I keep...
15
by: Foodbank | last post by:
Hi all, I'm trying to do a binary search and collect some stats from a text file in order to compare the processing times of this program (binary searching) versus an old program using linked...
4
by: sysxperts | last post by:
Hi, I have a mail server that generates archives in a directory for every message sent or received and each archive has an associated XML file with <sender>, <receiver>, <subject> and other...
11
by: Dave Schwimmer | last post by:
I am relatively new to PHP. One of the things that seems glaring obvious to me (coming from a C/C++ background) is how 'open' everything seems - (AFAIK). For instance, URLs typically have the name...
4
by: petermichaux | last post by:
Hi, I'm hoping for a reason I'm wrong or an alternate solution... I'd like to be able to dynamically include some javascript files. This is like scriptaculous.js library but their solution is...
2
by: IanC | last post by:
Hi, Does anyone know of a function or script to upload an entire subdirectory tree from a local file space to an FTP server? The Python distribution comes with "ftpmirror.py", which performs...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.