David Potter wrote:
>
> I've got a couple of hundred lists that are using the old config format.
>
> Anybody conjured up a way to update a bunch of lists at once?
I did a really short sh script to save the 'writeconfig list pass'
command to a file by more'ing the list.passwd files then just did 'cat
~/writeconfig-file | mail majordomo'. Make SURE that you back up your
list.config files first. The script was something to the effect of:
#!/bin/sh
for PASSFILE in `ls -1 *.passwd`; do
LIST=${PASSFILE%.*}
PASS=`more $PASSFILE`
echo writeconfig $LIST $PASS >> ~/writeconfig-file
done
If you have hundreds of lists but no access to the machine they run on
I can't think of any easy way to do it.
Good luck,
Doug
--
*** Chief Operations Officer, DALnet IRC network ***
*** Proud operator, designer and maintainer of the world's largest
*** Internet Relay Chat server. 5,328 clients and still growing.
*** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD)
References:
|
|