You would copy the script to a file and then make the file executable: chmod a+x <filename>
Then you would run the file nightly as either the user root or the user mailman. To do this as the mailman user you would: su mailman crontab -i This will let you edit the crontab for mailman. The following line added to the crontab would run the file ~mailman/localuser_sync (assuming you saved the script given in the last email into that file) at 2:05am every night: 5 2 * * * ~mailman/localuser_sync Good Luck - Jon Carnes ----- Original Message ----- From: "Ciolo_-^DusT^-_WebMaster" <[EMAIL PROTECTED]> To: "Jon Carnes" <[EMAIL PROTECTED]> Sent: Sunday, October 20, 2002 12:39 PM Subject: Re: [Mailman-Users] How to to automatically add users..? > Excuse me... I'm not so skilled yet... I'm just at the beginning... > Where I have to use or put or write this script??? > > grazie > thanx > > by > CioloWeb > > > local mailman list called "localusers". > > > > USERS=`cat /etc/passwd |sed -n "30,$ p"| cut -f1 -d: ` > > for i in $USERS > > do > > echo $[EMAIL PROTECTED] > ~mailman/localusers.txt > > done > > ~mailman/bin/sync_members -f ~mailman/localusers.txt localusers > > > > > ------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/