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:
|
|