#!/bin/bash while [ 1 == 1 ] do $1 > /tmp/watch-$$.tmp clear echo -e "\e[5;49;90m------------------------| \e[1;42m$(date)\e[5;49;90m |-----------------------\e[1;0m" cat /tmp/watch-$$.tmp sleep 1 done