CGI programs from js-cgi@inwap.com


The files in this directory with .cgi extensions are designed be executed
by the web server, either explictly (by URL) or implicitly (by using the
server-parsed command <!--#exec cgi="whatever.cgi"-->).

Those with .cmd extensions are invoked implictly from *.shtml files using
<!--#exec cmd="whatever.cmd args"-->

Some of the .pl files need to be stored as 'index.cgi' to work.

All the other files are to be invoked from the UNIX command line, or run
as 'cron' jobs.
	-Joe

NameSizeLast modifiedDescription
File/ [DIR]07-Aug-2008 19:09'list-imgs' requires File::FindDir.pm; File::Find.pm has sub find3() defined.
index-cgi.txt 2K13-Aug-1997 02:19Documentation on the program that produces this listing
pix.cgi 42K04-Apr-2007 05:54symbolic link to list-pics.pl
apache/ [DIR]07-Aug-2008 19:09Scripts for processing the Apache access_log
bestwwwd/ [DIR]07-Aug-2008 19:09Scripts specific to best.com's BESTWWWD server
miscunix/ [DIR]07-Aug-2008 19:09Utilities for the Unix command-line or cron jobs
webmaster/ [DIR]07-Aug-2008 19:09CGI and general utilities for web masters
get-counters 3K04-Jun-2007 07:49Parses the file that lists the web counters, then builds HTML page.
upd-limit 3K03-Jun-2004 07:40Updates public_html/limit.html to match public_html/index.html
usemap 4K03-May-1997 06:30Reads external imagemap file and creates a client-side imagemap
copydate 1K05-Sep-1997 23:07Copies the modification time of the first file to other files.
lsf 19K19-Aug-2005 22:36Creates a list of files and their attributes.
mostrecent 1K03-May-1997 06:25Returns name of file that was modified most recently.
setrecent 1K21-Jul-1997 04:43Sets the modification date on the first file to be the most recent of the others.
zgrep.pl 4K16-Oct-2001 23:30Recursive grep (works on Windows-95/98/NT as well).
days-till.cmd 2K04-Feb-1998 07:28Displays a running countdown until a particular date
download.cgi 2K19-Dec-1999 08:55CGI to hide the true name of files being downloaded.
env.cgi 1K11-Jan-2005 13:09Used by the ENV tutorial in http://www.inwap.com/web-hints/
gd.cgi 1K17-Feb-2004 21:03perl commands text
goto.cgi 2K16-Oct-2001 23:28Causes off-site links to be logged when user clicks on them.
href2imgsrc 3K04-Dec-1997 10:08Converts an HTML directory listing to in-line the images.
html-include 5K08-Dec-1997 10:38Includes subfiles into a non-parsed html page.
html-include.txt 6K03-Jun-2004 07:41Documentation on html-include, its operation and genesis.
list-bydate 2K22-May-1998 07:19Rewrites index.txt in chronological order.
list-files.pl 17K01-Oct-2004 00:27Creates a sorted listing of the current directory.
list-imgs 6K15-Apr-1998 04:38Creates thumbnails and "index.img" with width and height info.
list-pics.html 15K18-Sep-2006 08:04index.cgi - Displays individual pictures in a directory.
list-pics.pl 42K04-Apr-2007 05:54index.cgi - Displays individual pictures in a directory.
rename-oly 4K21-Oct-1998 02:16Rename pictures from the Olympic Digital Camera to have date/time.
showrandom.cgi 2K20-Dec-1998 20:33Creates an HREF and IMG SRC for a random image in the gallery.
thumb-gif 1K24-Sep-1997 00:53Creates a thumbnail GIF from a larger JPG file.
thumb-jpg 1K17-Sep-1997 08:55Creates a thumbnail JPG from a larger GIF file.
unsmartquote 1K04-Sep-2001 08:22Translates charset=windows-1252 to charset=iso-8859-1
userfriendly.cgi 1K04-Dec-1998 06:23Returns an HREF to the the current User Friendly cartoon.
whoyou.cgi 2K04-Dec-2001 05:50Lets visitors know that you know where they're coming from
whoyou.pl 1K05-Nov-1997 07:04Lets visitors know that you know where they're coming from
xv2small 7K17-Sep-1997 07:48Creates table of inline images from data in .xvpics directory.
files.cgi 17K01-Oct-2004 00:27Symlink to list-files.pl
hourly.pl 4K16-Oct-2001 23:32Moves webcam pictures to other directories, once an hour.
list-href.pl 2K08-Nov-2001 09:52Extracts just the <A HREF="">text</A> portions of a document.

monitor-file-growth 9K04-Mar-2008 01:57Displays incremental and average MB per second for growing files
pod2htmd.tmp 1K18-Sep-2006 07:58ASCII text
pod2htmi.tmp 1K18-Sep-2006 07:58ASCII text
ssh-showkeys 1K06-Aug-2003 23:38a /usr/bin/perl -n script text executable

This list is brought to you by list-files.pl (via its alias, 'index.cgi'). For directories of images, list-pics.pl should be used as 'index.cgi'. To see the latter in action, check out the cat pix: Murdock - Punkin - Kit-Kat - group shots - webcam.



Scripts for processing the Apache access_log

NameSizeLast modifiedDescription
http-sum 21K04-Jun-2007 09:08Summarizes httpd access logs (NCSA common/combined log format)
http-sum.ini 2K15-Feb-2002 01:02Configuration file for http-sum
http-graph 6K04-Jun-2007 02:16Converts bandwidth report from http-sum to a graph
http-ref 4K17-Nov-2001 11:38Creates http-sum.htm from http-sum.ref (written by http-sum).
mv-web-logs 2K03-Oct-2005 19:48Archives access_log.?.gz and error_log.?.gz to yearly subdirs
nimdafilter 2K05-Nov-2001 19:30Filters out Nimda requests from the access log
sum-log 2K07-Jun-2007 07:06Pull Apache logs from web server, summarizes, send updates back.

from-iserver 2K29-Aug-2006 14:36Pull Apache logs from a Verio iServer
http-activity 2K08-Jun-2007 17:37Creates html with graph and summary of activity.
rotate_logs 3K23-Nov-2001 08:34Rotates the Apache logs and compresses them. Optional logresolve.

Scripts for BESTWWWD, the old web server at best.com

NameSizeLast modifiedDescription
bht2ht 2K22-May-1999 23:54Creates .htaccess from .bhtaccess by filtering out BESTWWWD specific
http-log 6K27-Jul-2001 08:27Renames the access_log, fetches the error_log from httpd.
http-log.txt 4K07-Mar-1998 07:59Info on how to use http-log.
redirect.cgi 2K24-May-1997 10:44Tells user to use www.inwap.com/ instead of www.best.com/~inwap/
http-daily 6K08-Nov-2001 01:53Run by cron on shell{3,4,7}.ba at 7:30am daily for general web stuff
goto-best 3K15-Jan-2001 09:24Twice a day, copies new files from home to the web server
from-best 5K15-Sep-2001 07:01Copies new or updated files from best.com to mirror server

Utilities for the Unix command-line or cron jobs

NameSizeLast modifiedDescription
tcp-proxy 4K06-Oct-2001 04:53General proxy; created to access NNTPSERVER on another network
lsf4 18K27-Jul-2001 19:12Creates a list of files and their attributes. Old version.
lsf-comp 27K15-Sep-2001 00:45Compares the output from '/usr/local/lsf' done on master and slave.
lsf-date 2K27-Jul-2001 07:41Converts dates in lsf listings from hex to conventional format.
lsf-rcp 2K02-Nov-2000 23:27Performs "rcp", "chmod" and "chown" for /usr/local/bin/lsf-comp.
rm-same 4K08-Dec-2003 06:34Deletes files on remote system if they have same checksum as local.
disk-parts 9K01-Oct-2004 00:28Produces a concise summary of all disk partitions.
rrsync 3K01-Oct-2004 00:31Restricts rsync to subdirectory declared in .ssh/authorized_keys

CGI and general utilities for web masters

NameSizeLast modifiedDescription
fix-noframes 7K07-Jul-1997 10:28Updates the NOFRAMES section to be a table of all the framesets.
fiximg 11K24-May-1997 10:47Rewrites 'IMG SRC=""' tags to include WIDTH= and HEIGHT= attributes.
qxurl 1K27-Dec-2002 08:56Prints 'A HREF=""' and 'IMG SRC=""' URLs from input file
weblint 57K24-Nov-1997 11:10weblint - pick fluff off WWW pages (html). Version 1.017
weblint.txt 14K28-Nov-1997 20:21weblint documentation
rgb2gray.cgi 3K10-Dec-2005 09:22Describes the behavior of Netscape on a Sun SPARCstation-SLC or ELC

Joe Smith <js-cgi@inwap.com>