July 1, 2007

How can I send emails to all users ina linux server?

  1. I dunno
  2. Hi,

    I suppose on your own server.
    So go to the shell, create file /tmp/email_content with the content of your e-mail and you can send it to all the people.

    cat /etc/passwd | cut -d: -f 1 |grep -v ^# |xargs mailx -s Subject < /tmp/email_content

    As one command.

    By using
    cat /etc/passwd | cut -d: -f 1 |grep -v ^#
    You can see the list of the users to whom you will send the mail.

Tags: ,

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print

Track this entry

RSS BlogPulse

RSS Technorati Cosmos

Related Searches

, , , ,