Date: Wed, 13 Dec 2000 11:13:41 -0600 (CST) From: Mike Meyer <mwm@mired.org> To: Odhiambo Washington <wash@iconnect.co.ke>, rmasse@mastery.ca Cc: questions@freebsd.org Subject: Re: email local users Message-ID: <14903.44613.362230.504308@guru.mired.org> In-Reply-To: <79273951@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Odhiambo Washington <wash@iconnect.co.ke> types: > * Ryan Masse <rmasse@mastery.ca> [20001213 10:54]: writing on the subject 'email local users' > =>is it possible with a single process to email every user on the box at once? > =>if so how? > > The answer is YES and this is how one user on this list adviced and it worked > for me. > > Follow these steps > > su > cd /usr/local/bin > create a file called update-userlist which contains the commands below: > #!/bin/sh > awk -F: '($3>999 && $3<65534) { print $1; }' /etc/passwd >/var/log/user.list > > save the file. > chmod +x update-userlist [etc] If all your users have homes in /home (the default), and none of the system ids have homes in /home (also the default), then you can do by with "cd /home; mail *" <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Unix/FreeBSD consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14903.44613.362230.504308>