aboutsummaryrefslogtreecommitdiff
path: root/bin/clrd
blob: 0e41d2dbd38cbd5efe369bd75138e044f3869e95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
self=clrd
if [ "$#" -ne 1 ] ; then
    printf >&2 '%s: Need input file\n' "$self"
    exit 2
elif ! [ -t 1 ] ; then
    printf >&2 '%s: stdout not a terminal\n' "$self"
    exit 2
fi
clear
tail -f -- "$@"