Subversion Repositories wimsdev

Rev

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

  1. #! /bin/sh
  2.  
  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;
  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
  10. if [ "$w_test" = "no" ]; then
  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;
  15. else
  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
  21.    echo "    Date.Hour  session sheet exo Requete       IP      Statut"
  22.     echo "------------------------------------------------------------"
  23.     cat $session_dir/user.getraw | cut -d"      " -f1,2,4 ;
  24.   fi;
  25. fi;
  26.  
  27. ## 2:IP, 3:seed, 4:status
  28.