Great Circle Associates Majordomo-Users
(June 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Internet SMTP hook-ended cane needed
From: Jeff Blaine <Jeff . Blaine @ ciesin . org>
Date: Wed, 08 Jun 1994 20:32:24 -0400
To: majordomo-users @ greatcircle . com


Man, JUST as I hit `s', I saw the hardcoded ``CIESIN'' in the shell
script and thought . o O ( Hey, that should be a variable... )

Anyway, if you use the script to create INDEX files that I just sent out,
please edit the line that has CIESIN on it or use the new script below:

My humble apologies for mailbox spammage for no other reason than
quick finger syndrome.

The following is not a shar file -- save, edit, etc..

#!/bin/sh
# create_index 2.0
# Jeff Blaine, 1994
#
# Installation:
#
# Edit the ARCHIVEDIR variable below
# Edit the ORGANIZATION variable below
# chown to the username who owns the normal majordomo stuff
# chgrp to the group who owns the normal majordomo stuff
# chmod to 775
# Run this script out of cron every 8 hours or so, such as:
# 0 0,8,16 * * * /var/sendmail/majordomo/create_index
#
# Purpose:
#
# Create a simple INDEX file from the contents of the messages in the
# archive directories.
# 

ARCHIVEDIR=/var/sendmail/majordomo/archives
ORGANIZATION='CIESIN'

cd $ARCHIVEDIR

# for every file in ARCHIVEDIR, test to see if it is a directory, if it
# is, cd into that dir and create an INDEX file, if it is not a directory,
# do nothing
for i in *
do
	if [ -d $i ]; then
		cd $i
		rm -f INDEX
		echo "$ORGANIZATION $i mailing list INDEX of files" > INDEX
		echo "" >> INDEX
		echo "FILE - SUBJECT" >> INDEX
		echo "--------------" >> INDEX
		egrep "^Subject:" * | sed 's/:S/ - S/' >> INDEX
		cd ..
	fi
done
# End of shell script

Indexed By Date Previous: INDEX generator script
From: Jeff Blaine <Jeff.Blaine@ciesin.org>
Next: Re: files too large for "get"
From: Mick Farmer <mick@dcs.bbk.ac.uk>
Indexed By Thread Previous: Re: INDEX generator script
From: pdc@lunch.asd.sgi.com (Paul Close)
Next: Question/problem with the new resend
From: Adrian Barker <ccaaarb@ucl.ac.uk>

Google
 
Search Internet Search www.greatcircle.com