I have a directory tree on my hard disc which represents all the web pages and linked stuff
on my mirrored web hoster server.
All web pages and files are statically linked. So dynamically composed links e.g.
with javascript do not matter here.
Now I want to find out which of all these (many) files are un-reference orphans
starting from the main page index.html (or index.shtml)
In other words if e.g. a file aaa.log can not be referenced by a chain like
index.html -subpage8.html -details2345.htm l -aaa.log
Is there a tool which help me to investigate all these un-referenced webpages and files?
Of cause without doing a manual code review :-)
Keep in mind that the static link URLs can be absolute ( http://www.mywebpages.com/content/subpage8.html)
or relative (content/subpage8.html)
Pat 7 4514
On Dec 6, 11:15 am, pat...@hotmail. com (Patricia Mindanao) wrote:
I have a directory tree on my hard disc which represents all the web pages and linked stuff
on my mirrored web hoster server.
All web pages and files are statically linked. So dynamically composed links e.g.
with javascript do not matter here.
Now I want to find out which of all these (many) files are un-reference orphans
starting from the main page index.html (or index.shtml)
In other words if e.g. a file aaa.log can not be referenced by a chain like
index.html -subpage8.html -details2345.htm l -aaa.log
Is there a tool which help me to investigate all these un-referenced webpages and files?
Of cause without doing a manual code review :-)
Keep in mind that the static link URLs can be absolute (http://www.mywebpages.com/content/subpage8.html)
or relative (content/subpage8.html)
Pat
You will have to write a small script, or look for one on the net,
that will:
1) select your starting file (index.html if you want to check which
pages are accessible/not accessible starting from your index page).
2) read selected file
3) scan the file, extract all links, calculate what they should be
referring to and check if the corresponding files exist, flag them as
used....
4) select each of the files from step 3, proceed to step 2) for each
of them
continue until there are no more files to check...
In article <47************ ***********@new sspool1.arcor-online.net>, pa****@hotmail. com (Patricia Mindanao) wrote:
Is there a tool which help me to investigate all these un-referenced webpages
and files?
Of cause without doing a manual code review :-)
Use any basic spider (e.g., wget) followed by any recursive file
comparison (e.g., diff).
--
My personal UDP list: 127.0.0.1, 4ax.com, buzzardnews.com , googlegroups.co m,
heapnode.com, localhost, ntli.net, teranews.com, vif.com, x-privat.org
On Dec 6, 4:15 am, pat...@hotmail. com (Patricia Mindanao) wrote:
I have a directory tree on my hard disc which represents all the web pages and linked stuff
on my mirrored web hoster server.
All web pages and files are statically linked. So dynamically composed links e.g.
with javascript do not matter here.
On any linux server (most website are served this way, no....linux/
apache?)
############
create this file, call it "ifgrep"
If you don't put it in your current working
directory, make sure it is in your execution path.
chmod +x ifgrep <enter(do this to make it executable)
the ifgrep file:
#!/bin/sh
T=`grep $1 $2`
if [ "$T" ]; then
echo $2
fi
############
create this file, call it peeper:
chmod +x peeper
the peeper file:
#!/bin/sh
for x in `cat htmlfileExistsL ist`
do
file=`basename $x`
for lookee in `find . -type f -name "*html"`
do
look=`basename $file`
/home/sandy/bin/ifgrep $look $lookee;
done
done
###############
from the terminal prompt:
find . -name "*html" htmlfileExistsL ist
peeper htmlfileReferen cedInAnHtmlFile List
############### #
Now you have two text files:
htmlfileExistsL ist and htmlfileReferen cedInAnHtmlFile List
Any file names found in existsList not
found in foundINAFileLis t are orphaned html files
On Dec 7, 7:50 am, salmobytes <Sandy.Pittendr ...@gmail.comwr ote:
>
On any linux server (most website are served this way, no....linux/
apache?) ...apache and/or tomcat, that is.....
code snipped:
/home/sandy/bin/ifgrep $look $lookee;
You won't have installed ifgrep at this path, on your server.
But it is important to use the full path to the ifgrep
file (where ever it is) because, on most systems,
the shell won't have that file in its execution path,
.....so, use the full path to ifgrep in the peeper script.
On 12/6/2007 3:15 AM, Patricia Mindanao wrote:
I have a directory tree on my hard disc which represents all the web pages and linked stuff
on my mirrored web hoster server.
All web pages and files are statically linked. So dynamically composed links e.g.
with javascript do not matter here.
Now I want to find out which of all these (many) files are un-reference orphans
starting from the main page index.html (or index.shtml)
In other words if e.g. a file aaa.log can not be referenced by a chain like
index.html -subpage8.html -details2345.htm l -aaa.log
Is there a tool which help me to investigate all these un-referenced webpages and files?
Of cause without doing a manual code review :-)
Keep in mind that the static link URLs can be absolute (http://www.mywebpages.com/content/subpage8.html)
or relative (content/subpage8.html)
Pat
Using your example, use a search tool (e.g., Search on Windows, grep on
UNIX) to search the directory for all files of the form *.html, first
for the string href="aaa.log" and second for the string
href="http://www.mywebpages. com/content/aaa.log". I do this often but
not often enough to create a search script.
--
David E. Ross
<http://www.rossde.com/>
Natural foods can be harmful: Look at all the
people who die of natural causes.
Patricia Mindanao wrote:
Is there a tool which help me to investigate all these un-referenced webpages and files?
Of cause without doing a manual code review :-)
linklint <URL:http://www.linklint.or g/can determine orphans and
supports both local-file and HTTP site checking
--
Klaus Johannes Rusch Kl********@atme dia.net http://www.atmedia.net/KlausRusch/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Agathe |
last post by:
Bonjour,
Je souhaite insérer dans une table MySQL des données provenant d'un fichier
texte grâce à un script PHP. Mon fichier porte l'extension "txt" et les
données sont séparées par des ";'.
J'ai créé un script qui upload le fichier texte sur le serveur et qui lit le
contenu de chaque ligne, sépare chaque champ, puis stocke les données dans
un tableau indicé pour ensuite insérer ces données dans une table MySQL.
Mon script fonctionne...
|
by: pascal Joseph |
last post by:
J'ai un formulaire avec un seul champ text appelé "unite" et un
bouton.
En javascript j'aimerai utiliser un script qui interdise les valeurs
de type "char" et soit supérieur à 0
J'ai trouvé ce code mais je ne sais pas comment l'appliquer,
fonctionne-t-il?
<script>
|
by: Jorge Gallardo |
last post by:
Hola de nuevo a todos...
Agradecido a todos los que me habeis solucionado problemas anteriores...
Pero como no es novedad, me surge otro.
Recientemente buscando, adquiri un codigo para juntar 3 ficheros de texto.
El cual adapte para el desarrollo de mi DB.
El proceso es genial, pues junto los tres ficheros pulsando solo un boton.
(O determinada accion EVENTOS)
|
by: Alex |
last post by:
Ciao a tutti,
sto sviluppando un applicazione windows, in breve all'interno dello
stesso namespace ho un form con una datagrid e un thread che effettua
dei controlli e "dovrebbe" caricare i dati sulla datagrid stessa.
- nel namespace ho dichiarato un riferimento al form in questo modo:
private static Form1 f;
- nel form load istanzo e lancio il thread, nel thread eseguo i
|
by: Ciudad Tecnópolis |
last post by:
Hola, primero que todo mil disculpas por postear una pregunta no relacionada
al tema pero se que será muy útil para todos!
Actualmente estoy presentando un desarrollo en .NET para una compañía y unos
tipejos me están echando el negocio al suelo pues hablan pestes de .NET y le
dicen al director de sistemas de la compañía que Linux y PHP son lo
máximo!!! , por favor alguien tiene textos o material de cualquier tipo..
videos ....
| |
by: Venkat |
last post by:
Hi,
My application is splitted into more than one assembly. And I
want to clean up the methods which are not called or not used among any of
the assemblies. And also I want to remove the code for those methods which
are not called in any of my assemblies.
1) I want to remove all methods (either private,
|
by: nano9 |
last post by:
Hola gente quisiera que alguien me pudiera ayudar con un problemilla
que tengo, resulta que estoy programando en ASP con C# y estoy usando
un cadbgrid que se comporta parecido a un datagrid o dbgrid pero tiene
otras peculiaridades ahi que facilitan muchas tareas. Si alguno ha
usado este control talvez me podria ayudar.
El asunto esta asi, estoy queriendo agregar un mensaje en una etiqueta
debajo del grid para indicar la cantidad de items...
|
by: joerozario |
last post by:
i have created windows application in .net 2005.
after a day when i clicked the exe the error si thrown as "Unable to find a
version of the runtime to un this application"
i know you to got this same problem
has any one got solution for it.
|
by: =?ISO-8859-15?Q?Albe_V=B0?= |
last post by:
In my Application, I need to make a certain graphical refresh,
interrogating SqlServer, only if Application has focus (i.e. the title
bar is blue).
Interrogating .Focused property of various forms of the project is not
the way (maybe, enumerting forms and checking if at least one of them
has focus may work, but I don't think this to be the most beautiful
solution).
Any idea?
|
by: Dennis |
last post by:
I am wanting to set the Find window to not have the 'Search Fields As
Formatted' check box checked. I un-check it but when I close and go
back in it is checked again. Is there a way to make it default being
un-checked? Thanks
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| | |