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