Subversion Repositories wimsdev

Rev

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
15418 bpr 7
  echo "No work has been done by this participant up to now."
8
  exit
23 reyssat 9
fi
877 guerimand 10
if [ "$w_test" = "no" ]; then
15418 bpr 11
  echo "session sheet exo Requete Seed Statut"
12
  echo "------------------------------------------------------------"
13
  cat $session_dir/user.getraw | cut -c19- > $session_dir/user.getraw_1
14
  cat $session_dir/user.getraw_1 | cut -d"      " -f1,3,4;
877 guerimand 15
else
15418 bpr 16
  if [ "$w_wims_user" = "supervisor" ]; then
17
    echo "    Date.Hour         session sheet exo Requete       IP      Seed    Statut"
18
    echo "------------------------------------------------------------"
19
    cat $session_dir/user.getraw | cut -d"      " -f1,2,3,4 ;
20
  else
14880 guerimand 21
   echo "    Date.Hour  session sheet exo Requete       IP      Statut"
15418 bpr 22
    echo "------------------------------------------------------------"
23
    cat $session_dir/user.getraw | cut -d"      " -f1,2,4 ;
24
  fi;
877 guerimand 25
fi;
23 reyssat 26
 
12219 bpr 27
## 2:IP, 3:seed, 4:status