Path: utzoo!attcan!uunet!mcsun!hp4nl!phigate!ehviea!leo From: leo@ehviea.ine.philips.nl (Leo de Wit) Newsgroups: comp.unix.questions Subject: Re: SEX! or, how do I mail to a lot of unix users? Message-ID: <804@ehviea.ine.philips.nl> Date: 5 Jun 90 16:33:03 GMT References: <900531083002.30e0d06c@Csa2.LBL.Gov> <1990May31.230138.14896@iwarp.intel.com> Reply-To: leo@ehviea.UUCP (Leo de Wit) Organization: Philips I&E Eindhoven Lines: 42 In article <1990May31.230138.14896@iwarp.intel.com> merlyn@iwarp.intel.com (Randal Schwartz) writes: |In article , jason@cs (Jason C Austin) writes: || #!/bin/sh || || users=`cat user-list` 1 fork, 1 exec. || || for user in $users || do || echo "Mailing $user" || mail $user < message || done | 2 forks & 2 execs for each user. | |Too many processes. If you want progress reporting, say: | |while read user |do | echo "Mailing $user" | mail $user