[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sending email to all users [was Re: mutt+exim not working]

>ow btw, how do u send email to all users in ur system w/o having to type all
>their user names ?  i use exim also ...

$  edit message_in_file
$  for person in `cat /etc/passwd | awk -F ':' '{if ($3 >= 1000) print $1}'` do  
>    mail -s "subject here" $person < message_in_file;
>  done
$ rm message_in_file


Reply to: