SEX! or, how do I mail to a lot of unix users?

Brian Fenske fenske at iftccu.ca.boeing.com
Sat Jun 2 02:51:07 AEST 1990


I don't know if this command is available on all versions of UNIX but on our
Sequent you can use the "users" command to produce a string of usernames.
If joe, fred, bob and scooter are logged in, users produces

joe fred bob scooter

You could then just say

mail `users` < message

--
Brian Fenske                     Manufacturing Research & Development
Boeing Commercial Airplanes      747-400 Integrated Functional Test System
P.O. Box 3707,  M/S 0P-37        (206) 342-5784
Seattle, WA  98124               ...uunet!bcstec!iftccu!fenske



More information about the Comp.unix.questions mailing list