time helpers
This commit is contained in:
parent
8b82bfe9ec
commit
887d3dd1e2
2 changed files with 39 additions and 0 deletions
23
scripts/compare_time.sh
Executable file
23
scripts/compare_time.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
# compare_local_time.sh
|
||||
# 20260516 ChatGPT
|
||||
# $Header$
|
||||
#
|
||||
# Infinite loop displaying only Local time from timedatectl.
|
||||
#
|
||||
# Example:
|
||||
# chmod 755 compare_local_time.sh
|
||||
# ./compare_local_time.sh
|
||||
#
|
||||
# Suggested side-by-side usage:
|
||||
# ssh jlpoole@zerodev1
|
||||
# ./compare_local_time.sh
|
||||
#
|
||||
# ssh jlpoole@zerodev2
|
||||
# ./compare_local_time.sh
|
||||
|
||||
while true
|
||||
do
|
||||
timedatectl status | grep 'Local time:'
|
||||
sleep 1
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue