Jon Hall | ef82282 | 2016-02-19 10:36:47 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -e -o pipefail |
| 4 | |
| 5 | if [ "$#" -lt 1 ]; then |
| 6 | file="DemoCode" |
| 7 | elif [ "$1" = "-s" ]; then |
| 8 | file="DemoSummary" |
| 9 | else |
| 10 | printf "usage: $(basename $0) [options]\n\n" |
| 11 | printf "Simple command to print the latest test summary file.\n" |
| 12 | printf "\noptions:\n\t--help : Displays this message and exits\n" |
| 13 | printf "\t-f : Tails the summary file and updates as the file is written to.\n\n" |
| 14 | exit 1 |
| 15 | fi |
Jon Hall | f957235 | 2016-03-09 10:21:18 -0800 | [diff] [blame] | 16 | tail -F /home/admin/ONS16/DemoCode.txt |
Jon Hall | ef82282 | 2016-02-19 10:36:47 -0800 | [diff] [blame] | 17 | exit 0 |