Rev 15418 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | #! /bin/sh |
2 | |||
16653 | guerimand | 3 | ## maybe this file can be mutualise with adm/class/freework/proc/getraw.sh |
4 | |||
877 | guerimand | 5 | log_dir=$w_wims_home/log/classes/$w_wims_class; |
6 | cat $log_dir/score/$w_getraw $log_dir/noscore/$w_getraw 2>/dev/null | sort >$session_dir/user.getraw; |
||
23 | reyssat | 7 | |
8 | if [ ! -s "$session_dir/user.getraw" ]; then |
||
15418 | bpr | 9 | echo "No work has been done by this participant up to now." |
10 | exit |
||
23 | reyssat | 11 | fi |
877 | guerimand | 12 | if [ "$w_test" = "no" ]; then |
15418 | bpr | 13 | echo "session sheet exo Requete Seed Statut" |
14 | echo "------------------------------------------------------------" |
||
15 | cat $session_dir/user.getraw | cut -c19- > $session_dir/user.getraw_1 |
||
16 | cat $session_dir/user.getraw_1 | cut -d" " -f1,3,4; |
||
877 | guerimand | 17 | else |
15418 | bpr | 18 | if [ "$w_wims_user" = "supervisor" ]; then |
19 | echo " Date.Hour session sheet exo Requete IP Seed Statut" |
||
20 | echo "------------------------------------------------------------" |
||
21 | cat $session_dir/user.getraw | cut -d" " -f1,2,3,4 ; |
||
22 | else |
||
14880 | guerimand | 23 | echo " Date.Hour session sheet exo Requete IP Statut" |
15418 | bpr | 24 | echo "------------------------------------------------------------" |
25 | cat $session_dir/user.getraw | cut -d" " -f1,2,4 ; |
||
26 | fi; |
||
877 | guerimand | 27 | fi; |
23 | reyssat | 28 | |
12219 | bpr | 29 | ## 2:IP, 3:seed, 4:status |