: ########################################################################## # Title : timestamp - periodically write time stamp # Author : Heiner Steven # Date : 1994-02-04 # Requires : # Category : Debugging # SCCS-Id. : @(#) timestamp 1.2 03/12/19 ########################################################################## # Beschreibung: # ########################################################################## PN=`basename "$0"` # Program name VER='1.2' Sek=${1:-60} # Interval (seconds) case "$Sek" in [0-9][0-9]*) ;; # correct *) echo "$PN - print time stamp, $VER" echo "usage: $PN [interval]" echo echo "Prints current time all seconds" echo "(default: 60)." exit 1 esac while true do echo "--------------------------------(`date`)------" sleep $Sek done