#!/bin/sh

if [$2 = ""]; then 
   sleep=30; 
else
   sleep=$2;
fi

if [$1 = ""]; then
   echo "usage:  $0 [command] [time]";
   exit;
else
   command=$1;
fi

yes | while read i; do clear; $command ; sleep $sleep; done

