]> andersk Git - moira.git/blob - reg_svr/coupons/INSTRUCTIONS
Instructions for generating coupons for incoming students, and a copy of
[moira.git] / reg_svr / coupons / INSTRUCTIONS
1 $Id $
2
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
5 server.  
6
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:
10
11 set head off
12 spool /var/tmp/mitids
13 SELECT clearid FROM users WHERE type='2004' AND status=0
14 ORDER BY last, first, middle;
15
16 Replace "2004" with the year of the entering class as necessary.
17
18 Step 2: Feed the list of MIT id numbers to genwords, and save the output
19 to a file.  Sample sh script:
20
21 for i in `cat /var/tmp/mitids.lst`; do
22     /moira/bin/genwords -v $i >> /var/tmp/genwords.out
23 done
24
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.
27 Sample command:
28
29 cp /mit/moiradev/src/reg_svr/coupons/coupon.ps /var/tmp
30 cat genwords.out >> coupon.ps
31
32 Step 4: Print the coupons:
33
34 lpr -Pprintername coupon.ps
35
This page took 0.046901 seconds and 5 git commands to generate.