3 The 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
7 Step 1: Generate a list of all the MIT id numbers for the incoming
8 class you care about; It's important that you order them by the full
9 name of the student in question. Sample SQL:
13 SELECT clearid FROM users WHERE type='2004' AND status=0
14 ORDER BY last, first, middle;
16 Replace "2004" with the year of the entering class as necessary.
18 Step 2: Feed the list of MIT id numbers to genwords, and save the output
19 to a file. Sample sh script:
21 for i in `cat /var/tmp/mitids.lst`; do
22 /moira/bin/genwords -v $i >> /var/tmp/genwords.out
25 Step 3: Append the output of genwords to the default coupon, which is
26 located in the Moira source tree under reg_svr/coupons/coupon.ps.
29 cp /mit/moiradev/src/reg_svr/coupons/coupon.ps /var/tmp
30 cat genwords.out >> coupon.ps
32 Step 4: Print the coupons:
34 lpr -Pprintername coupon.ps