Great Circle Associates List-Managers
(March 1996)
 

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

Subject: Re: correction...
From: "David H. Brierley" <dhb @ ssd . ray . com>
Date: Mon, 4 Mar 1996 11:38:28 -0500 (EST)
To: Learn to suffer what you hate <jgreshes @ netaxs . com>
Cc: list-managers @ GreatCircle . COM
In-reply-to: <Pine.SUN.3.91.960303225335.25793D-100000@unix3.netaxs.com>

On Sun, 3 Mar 1996, Learn to suffer what you hate wrote:

> Now does anyone have a nice sed script or whatever I can pass these names 
> through to generate the unsub message/password majordomo command I need 
> to unsub all these ids?  Like a nice little here's the names, here's the 

The following is a litlle shell script that takes two arguments, the
name of the list and the username.  It then looks up the password and
the majordomo email address in a file called .majordomo in your home
directory.  Each line of the .majordomo file consists of three entries;
the list name, the password, and the majordomo email address.  It's not
a really complicated script but it certainly is a handy little thing.


----- cut here for "unsub" -----
#!/bin/sh

PW=`awk '$1 == list {print $2}' list="$1" $HOME/.majordomo`
MD=`awk '$1 == list {print $3}' list="$1" $HOME/.majordomo`

if test "${PW}" = "" -o "${MD}" = ""
then
	echo "Could not get password and/or email address for list $1"
	exit 1
fi

echo "approve ${PW} unsubscribe ${1} ${2}" | mail ${MD}

exit 0

-- 
David H. Brierley
Raytheon Electronic Systems - Portsmouth RI Facility
Work: dhb@ssd.ray.com       Home: dave@galaxia.network23.com




References:
Indexed By Date Previous: Re: correction...
From: meo@schoneal.com (Miles O'Neal)
Next: Microsoft Exchange mail to list server addresses.
From: Gene Rackow <rackow@mcs.anl.gov>
Indexed By Thread Previous: Re: correction...
From: Learn to suffer what you hate <jgreshes@netaxs.com>
Next: Re: correction...
From: meo@schoneal.com (Miles O'Neal)

Google
 
Search Internet Search www.greatcircle.com