]> andersk Git - moira.git/blame - reg_svr/coupons/INSTRUCTIONS
Assiggn "default" policy to newly created Kerberos principals, if it exists.
[moira.git] / reg_svr / coupons / INSTRUCTIONS
CommitLineData
e34d5cf2 1$Id$
75866410 2
3The executables are in /moira/bin/ on the moira server, with sources in
4/mit/moiradev/src/reg_svr/. Most of the commands are run on the Moira
5server.
6
7Step 1: Generate a list of all the MIT id numbers for the incoming
8class you care about; It's important that you order them by the full
9name of the student in question. Sample SQL:
10
11set head off
12spool /var/tmp/mitids
13SELECT clearid FROM users WHERE type='2004' AND status=0
14ORDER BY last, first, middle;
15
16Replace "2004" with the year of the entering class as necessary.
17
18Step 2: Feed the list of MIT id numbers to genwords, and save the output
19to a file. Sample sh script:
20
21for i in `cat /var/tmp/mitids.lst`; do
22 /moira/bin/genwords -v $i >> /var/tmp/genwords.out
23done
24
25Step 3: Append the output of genwords to the default coupon, which is
26located in the Moira source tree under reg_svr/coupons/coupon.ps.
27Sample command:
28
29cp /mit/moiradev/src/reg_svr/coupons/coupon.ps /var/tmp
30cat genwords.out >> coupon.ps
31
32Step 4: Print the coupons:
33
34lpr -Pprintername coupon.ps
35
This page took 0.072264 seconds and 5 git commands to generate.