Hi , Thanks fro the answer. Wont this mail the whole /etc/passwd file? What about getting only the user names and the usernames shell information? Regards 2009/6/1, Chris St. Pierre <stpierre@xxxxxxxxxxxxxxxx>: > On Mon, 1 Jun 2009, Manuel Aróstegui wrote: > >> On Mon, 2009-06-01 at 16:10 +0300, a bv wrote: >>> Hi list, >>> >>> I need a script which will get the users and their shell from >>> /etc/passwd file and mail it to the company mail account which i use >>> on Lotus Notes. Im not yet a scripting guy so i wanted to ask to you. >>> >>> Regards >>> >> >> Can't you email them just using "mail -s" and using the FROM account you >> just want? >> >> That would make things easier > > Indeed. No script is necessary: > > mail -s "/etc/password on `hostname`" whoever@xxxxxxxxxxx < /etc/passwd > > Chris St. Pierre > Unix Systems Administrator > Nebraska Wesleyan University > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list