on Wed, Dec 26, 2001 at 03:55:41AM -0800, Petre Daniel ([EMAIL PROTECTED]) wrote: > Ok,this may sound a bit twisted but i dont know very well shell scripting > and i have the following problem:
> i have around 700 accounts on my school server and i want to send email to > everyone of them from time to time with news related to the school and stuff.. > I thought i can make an account and put in its homedir .forward file all > the addresses > I need a script that if run, checks all /home accounts and put them > like [EMAIL PROTECTED] in the .forward of my > email-broadcast-account. Or is there another simple way? Simpler? Dunno. Other? Sure. - Use a mailing list, e.g.: Mailman. Pro: This is what it's designed for. Highly configurable. Con: A modicum of setup is involved. - Use an MUA mail alias (within your mailer, e.g.: mutt) Pro: Simple Con: Alias is expanded in mailer, all addressees see all others, unless Bcc'd or similar. - Use an MTA mail alias (within your mail daemon, e.g.: exim) Pro: Reasonably simple. Conceals/supresses recipient addresses. Con: Requires root access. May be accessible to outsiders if your box can be used as a relay. You could also use a shell script and a recipients list: $ vi body # message body $ find /home -type d -maxdepth 1 | xargs -n 1 basename > whoto $ for i in $( cat whoto ); do mail -s "Subject" $i < body; done I'd probably opt for the Mailman option, particularly considering once you've set up one list, you'll likely have requests for others. Peace. -- Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/ What part of "Gestalt" don't you understand? Home of the brave http://gestalt-system.sourceforge.net/ Land of the free We freed Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org Geek for Hire http://kmself.home.netcom.com/resume.html
pgpV3p7nVxPB8.pgp
Description: PGP signature