blob: 1de40549967e51e34053ec2e279ee98939e460aa (
plain)
- #!/bin/sh
- #
- # /usr/local/bin/localloopdump
- # Copyright 2006 Jonas Smedegaard <dr@jones.dk>
- #
- # $Id: localloopdump,v 1.1 2006-12-02 17:18:30 jonas Exp $
- #
- # Endlessly loop of exec'ing a command and dumping its output to stdout
- #
- # TODO: Use getopts to make slepp time customizable
- #
- set -e
- while test 1 = 1; do
- output=$("$@")
- clear
- echo -n "$output"
- sleep 1
- done
|