Script for mailing /etc/passwd information

Manuel Aróstegui manuel at todo-linux.com
Mon Jun 1 13:14:18 UTC 2009


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

Manuel.




More information about the redhat-list mailing list