welmanexternal link

The web external link manager

Introduction | Features | Examples | Documentation | Download | Contact


If you have a web site and want to make evident the hypertextual links pointing from your site to another site that is considered external, welman can do this work automatically for you.
Welman makes evident the external links embedded in the pages of a web site by inserting a marker image just after the link text. The marker image is selected by the user and usually is a small icon (i.e. external link). The program can also check the status of each external link and set two different markers selected by the user: one for ok status and one for broken status (i.e. external link and external link broken).
At present, external links are considered those links that have an href url with a non empty network location (blue text): i.e. http://foo.bar/anydoc.html .



Mark all *.html files in directory /home/myweb with image icon /home/myweb/img/lok.png .

welman -m ./img/lok.png "/home/myweb/*.html"

The same as above but recursive in all subdirectories of /home/myweb .

welman -rm ./img/lok.png "/home/myweb/*.html"

The same as above but ignore pages last modify time: mark them anyway.

welman -frm ./img/lok.png "/home/myweb/*.html"

Mark and check recursively all *.html files in directory /home/myweb with image icon /home/myweb/img/lok.png for ok link status and image icon /home/myweb/img/lko.png for broken link status.

welman -rm ./img/lok.png -s ./img/lko.png "/home/myweb/*.html"

Clean files marked with the above command, reverting them to their original content.

welman -rc "/home/myweb/*.html"



welman -c|[-m MARK [-s MARK_BRK]] [-q|-v VERB] file
welman -h|--version

IMPORTANT: If file contains globbing chars (* ? .), it MUST be quoted
to prevent file name expansion by the shell command interpreter.

program options

Clean marked files. Remove any marking icon introduced by -m or -s options. Conflicts with -m and -s options. Implies -f option.
Ignore pages last modify time. Visit them anyway.
Print help text.
External link marker icon. MARK: the file name of the icon inserted by the program just after the external link to mark it.  Conflicts with -c option.
-s MARK_BRK External link status check. For each external link, verify its status (reachable or broken) and set properly its marker icon: the normal icon for a reachable link or the broken link icon otherwise. MARK_BRK: the file name of the icon substituted to the normal icon when a link is checked as broken. Conflicts with -c option. Implies -f option.
Quiet. Suppress normal output messaging, keep error messages.
Recursive. Process given file(s) in the given directory and then do the same recursively for all subdirectories.
Set verbosity level, which type of logged messages that are also copied to program terminal. Levels: 0 no msg, 1 fatals (F), 2 F+errs (E), 3 F+E+warns (W), 4 E+W+normal msg [default=1].
Print program version.

output files

Welman produces two files at each run in the current working directory: the log file welman.log and the data file welman.dat. The log file is a normal text file useful for debug and documentation of run activity. The data file is a data base for internal use. The previous version of these files,if exist, are moved from <filename> to <filename>.<nnn> where <nnn> is the new version number. Welman keeps up to 10 most recent versions of each file.


WARNING: this software is in early beta status, use at your own risk.

(2004/03/04) the welman program script, all in one file.
external link ok lok.png (2004/03/04) external link icon: normal status.
external link ko lko.png (2004/03/04) external link icon: broken status.


For questions, comments, corrections, improvements, etc. mail to mxgbot_at_gmail_dot_com.

© Copyright 2004 Fabrizio Pollastri - $Id: welman.html,v 1.5 2004/03/04 17:44:53 fabrizio Exp $