qcm

Faire des qcm simplement - retour accueil

git clone git://bebou.netlib.re/qcm
Log | Files | Refs | README |

commit cac6624a0fa4cdd1937fb1d77d2f92b7a326c826
parent a4cea8bbad0d35ec6b071aa06372be219b629eeb
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Thu,  7 Nov 2024 10:35:06 +0100

-r pour configurer le rafraichissement

par défaut 1 seconde

Diffstat:
Mqcm.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qcm.sh b/qcm.sh @@ -17,9 +17,9 @@ usage() <<-. cat qcm -l /var/log/httpd/logs . -while getopts "hl:u:n:" opt; do +while getopts "hl:u:n:r:" opt; do case $opt in - ( l | u | n ) [ ! -z $OPTARG ] && eval "$opt='$OPTARG'" ;; + ( l | u | n | r ) [ ! -z $OPTARG ] && eval "$opt='$OPTARG'" ;; ( h ) usage; exit ;; esac done @@ -57,7 +57,7 @@ while :;do && tot=$(( $(echo "$dat" | awk '{print $1}' | paste -s -d+ -) )) clear playout - sleep 0.2 + sleep ${r:-1} done #POUR LES QR CODE