Sysadmin:Contacting all users: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
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:
- Checkout/update the sysadmin CVS repository.
- 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.