karl_kleinpaste@cis.ohio-state.edu (05/31/90)
Depending on what you want to do, try either mail `users` # finds those logged in or mail `awk -F: '{ print $1 }' /etc/passwd` # finds everybody --karl
lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) (06/05/90)
In article <KARL.90May31113729@giza.cis.ohio-state.edu> karl_kleinpaste@cis.ohio-state.edu writes: > mail `awk -F: '{ print $1 }' /etc/passwd` # finds everybody Yes, this mails to all the users (in the password file). It also mails to all the uucp logins, the daemons, the anonymous ftp account, ... If you are running sendmail on a slow machine (say, a 785) and you have a reasonable number of users logged in (say, 40) you will be able to see how a VAX does not fall over when its load average hits 75+. It just gets real sloooow. It gets sooo slooooow that the system administrator will wait about 10 minutes between the time he enters the password for the su command, and the time he gets a shell prompt to start blowing away all those sendmail processes ... Before doing this, maybe you should ask your local postmaster about how to do this efficiently? Perhaps a local news group? Or maybe something in the Message of the Day? Or maybe your message is that all fire important after all? [ FYI - Of the last person that tried the above trick here, all that was found was a smoldering lump of some charred organic substance. ] -- Lyndon Nerenberg VE6BBM / Computing Services / Athabasca University {alberta,cbmvax,mips}!atha!lyndon || lyndon@cs.athabascau.ca Sendmail has been described as the largest program yet created that does absolutely nothing. -- Mr. Protocol