Parent Directory
|
Revision Log
Add Video Demo Startup Kit
1 #!/bin/bash 2 # 3 # See if the desired ID is in the conference record database. 4 # Return boolean VALID_RECORD_PIN. 5 # 6 # Use the Linux "lockfile" command to control concurrent access 7 # 8 #set -x 9 10 declare -a array 11 while read -e ARG && [ "$ARG" ] ; do 12 array=(` echo $ARG | sed -e 's/://'`) 13 export ${array[0]}=${array[1]} 14 done 15 16 checkresults() { 17 while read line 18 do 19 case ${line:0:4} in 20 "200 " ) echo $line >&2 21 return;; 22 "510 " ) echo $line >&2 23 return;; 24 "520 " ) echo $line >&2 25 return;; 26 * ) echo $line >&2;; #keep on reading those Invlid command 27 #command syntax until "520 End ..." 28 esac 29 done 30 } 31 32 IDWANTED=$1 33 34 echo "SET VARIABLE VALID_RECORD_PIN F" 35 checkresults 36 37 # Just validate that 131-136 was entered. Should really check all possible 38 # files to make sure the recordings are there 39 40 if test ${IDWANTED} -ge 131 -a ${IDWANTED} -le 136 41 then 42 echo "SET VARIABLE VALID_RECORD_PIN T" 43 checkresults 44 fi 45 46 exit 0; 47 48
| No admin address has been configured | ViewVC Help |
| Powered by ViewVC 1.0.8 |