Subversion Repositories wimsdev

Rev

Rev 12207 | Rev 14880 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
#! /bin/sh
2
 
877 guerimand 3
log_dir=$w_wims_home/log/classes/$w_wims_class;
4
cat $log_dir/score/$w_getraw $log_dir/noscore/$w_getraw 2>/dev/null | sort >$session_dir/user.getraw;
23 reyssat 5
 
6
if [ ! -s "$session_dir/user.getraw" ]; then
7
 echo "No work has been done by this participant up to now."
8
 exit
9
fi
877 guerimand 10
if [ "$w_test" = "no" ]; then
12207 bpr 11
 echo "    Date.Hour    session sheet exo Requete       Statut"
877 guerimand 12
 echo "------------------------------------------------------------"
12219 bpr 13
 cat $session_dir/user.getraw | cut -d" " -f1,4 ;
877 guerimand 14
else
12207 bpr 15
 echo "    Date.Hour    session sheet exo Requete       IP      Statut"
877 guerimand 16
 echo "------------------------------------------------------------"
12207 bpr 17
 if [ "$w_wims_user" = "supervisor" ]; then
18
  cat $session_dir/user.getraw | cut -d"        " -f1,2,3,4 ;
19
 else
12219 bpr 20
  cat $session_dir/user.getraw | cut -d"        " -f1,2,4 ;
12207 bpr 21
 fi;
877 guerimand 22
fi;
23 reyssat 23
 
12219 bpr 24
## 2:IP, 3:seed, 4:status