> In /etc/aliases put this:
>
> all_users: "|/usr/local/bin/send-to-all.sh"
>
> (dont forget to run newaliases)
>
> In /usr/local/bin/send-to-all.sh:
>
> #! /bin/sh
> USERS=`/bin/cat /etc/passwd | /bin/cut -d':' -f 1`
> cat | /usr/sbin/sendmail $USERS
>
> ==========================
>
> I suggest trying this first on a test box just to see if this
> will work. This script has the added convenience of always being updated
> with respect to the current user list, as it's always generated on the
> fly.
>
> The only problem i can see here is if the user list is too long to be
> supported on the command line. In which case, we will just need to
> reconstruct the email, and resend it one by one...
HTH
Ian
On Mon, 26 Jun 2000 [EMAIL PROTECTED] wrote:
>
>
> sirs,
>
> How do i send mail to all users ?
>
>
>
>
>
> thanks,
> dwen
>
>
> [e-liam] [EMAIL PROTECTED]
> [e-site] http://listen.to/gallagher
>
> "I've got to stop smiling, it gives the wrong impression"
>
>
> -
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]