blob: 91c2c5868b3c4c82c07979eb8660d03a31f3b47c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
echo "start the clock"
while [ ! -f stop ]; do
#echo "File not found!"
seconds=60; date1=$((`date +%s` + $seconds));
while [ "$date1" -ge `date +%s` ]; do
#echo -ne "$(date -u --date @$(($date1 - `date +%s` )) +%H:%M:%S)\r"; > /dev/null
: #busy wait
done
printf "${RED}############# `date` ############${NC}\n"
done
|