source: trunk/third/moira/reg_svr/coupons/INSTRUCTIONS @ 24319

Revision 24319, 1.1 KB checked in by broder, 15 years ago (diff)
New Moira snapshot from SVN.
Line 
1$Id: INSTRUCTIONS 3956 2010-01-05 20:56:56Z zacheiss $
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
Note: See TracBrowser for help on using the repository browser.