#!/bin/sh CMD="$1" SLEEP="$2" while [ 1 ]; do date eval $CMD echo " " sleep $SLEEP done