Compare Pastes
Differences between the pastes
#124418 (16.07.2019 11:54)
and
#172692 (10.04.2021 11:41).
1 | #! /bin/bash | |
2 | ||
3 | hmem=$(date +%H) | |
4 | hnow=$(date +%H) | |
5 | ||
6 | while : | |
7 | do | |
8 | hnow=$(date +%H) | |
9 | #echo "heure actuelle : $hnow - heure mémorisée : $hmem" | |
10 | if [ $hnow != $hmem ] | |
11 | then | |
12 | echo "Changement d heure" | |
13 | play /home/adrien/tmp/bash_horloge/$hnow.ogg | |
14 | hmem=$hnow | |
15 | fi | |
16 | ||
17 | sleep 1 |