Sysadmin:Contacting all users: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Skylar (talk | contribs)
mNo edit summary
Skylar (talk | contribs)
No edit summary
Line 4: Line 4:
# You will need to run <tt>mail_users.pl</tt> '''from quark''' like so:
# You will need to run <tt>mail_users.pl</tt> '''from quark''' like so:


<tt>perl mail_users.pl [text file] ''[from-address]''</tt>
<tt>perl mail_users.pl [text file] ''[from-address]'' ''[subject]''</tt>


The text file is required, as it will become the body of the message. The from-address is not; it will be set to admin@cs.earlham.edu by default.
The text file is required, as it will become the body of the message. The from-address is not; it will be set to admin@cs.earlham.edu by default. The subject line will be set to "[Admin-announce] Downtime" if it is not specified.

Revision as of 12:26, 16 June 2006

I have written a Perl script that will send an email to all users (i.e. all users in the "users" group). Here is the procedure for running it:

  1. Checkout/update the sysadmin CVS repository.
  2. You will need to run mail_users.pl from quark like so:

perl mail_users.pl [text file] [from-address] [subject]

The text file is required, as it will become the body of the message. The from-address is not; it will be set to admin@cs.earlham.edu by default. The subject line will be set to "[Admin-announce] Downtime" if it is not specified.