aboutsummaryrefslogtreecommitdiffstats
path: root/clock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clock.sh')
-rwxr-xr-xclock.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/clock.sh b/clock.sh
new file mode 100755
index 00000000000..91c2c5868b3
--- /dev/null
+++ b/clock.sh
@@ -0,0 +1,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 \ No newline at end of file