From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078609810750.tru64-unix-managers.marc@archive.invalid> From: Felix Ortigosa Martinez Date: Mon, 31 Mar 1997 19:45:26 +0000 To: tru64-unix-managers Subject: [s] Send mail.. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078609810750 Thank you, to all those that they sent me a mail Simon Tardell, Jeff Zabek, Gustavo Gibson... and the possible solutions are: 1. Creating the [news] inside the system. 2. Create the file /etc/motd or /etc/issue, but this passes you it without seeing it. 3. Creating a Scripts shell ****************************** #!/bin/sh for username in `cat /etc/passwd | awk -F: '{print $1}'` do mail -s "Subject here" $username < message.filename done ******************************* You may try the following on Bourne Shell: for i in cut -f1 -d: /etc/passwd do Mail -s "Subject" $i > Hello Administrators > > I don't have much experience in UNIX but I need to know how shipping a > mail to all my users of the servant, I have 150 users. > > I have attempted with the following command > > cp /etc/passwd passwd.old > sed -n '14,164p' passwd.old | awk '{ > > split($0,a,":"); > print a[1] ; *** Good **** > mail a[1] }' > > but without success some. > > Where - anuncio - in the mail to send. > > > Regards. > Felix. > > > >