Rev 5257 | Rev 5352 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5220 | guerimand | 1 | !! output : whoconnect=list of connected participant |
2 | !! numpartconnected=number of participant connected |
||
3 | !! in wims_class |
||
4 | !! |
||
5 | !! |
||
6 | |||
5279 | guerimand | 7 | !let file_=!replace internal / by ~ in $wims_class |
8 | last_=!sh if [ -e $wims_home/s2/$wims_session/whoconnect.$file_ ]; then\ |
||
9 | stat -c%Y $wims_home/s2/$wims_session/whoconnect.$file_;\ |
||
10 | fi; |
||
11 | !default $last_=0 |
||
5257 | guerimand | 12 | !if $wims_nowseconds-$last_>300 or $wims_read_parm=1 |
5220 | guerimand | 13 | ses_=!sh cd $wims_home/sessions;\ |
14 | grep -r wims_class=$wims_class ./*/var.stat | cut -d/ -f2; |
||
15 | ses_=!words2items $ses_ |
||
16 | whoconnect=$empty |
||
17 | !for s_ in $ses_ |
||
18 | t_=!defof wims_user\ |
||
19 | wims_firstname\ |
||
20 | wims_lastname in wimshome/sessions/$s_/var.stat |
||
21 | !distribute line $t_ into t1_,t2_,t3_ |
||
22 | !if $t1_!=supervisor |
||
23 | whoconnect=!append line $t1_,$s_,$t2_,$t3_ to $whoconnect |
||
24 | !endif |
||
25 | !next s_ |
||
5279 | guerimand | 26 | !writefile wimshome/s2/$wims_session/whoconnect.$file_ $whoconnect |
5220 | guerimand | 27 | !else |
5279 | guerimand | 28 | whoconnect=!record 0 of wimshome/s2/$wims_session/whoconnect.$file_ |
5220 | guerimand | 29 | !endif |
30 | numpartconnected=!linecnt $whoconnect |