improved syntax error:
now shows correct number of unparsed tokens, a special message for
unexpected EOF and a list of tokens that could continue the parsed input
#! /bin/sh
# xlisten -- start a program in one window and create a listener window
# environment variable $LISTEN specifies the file name
#create the file!
date > $LISTEN
xterm -geo 80x10+0+0 -T Listener -n Listener -e tail -f $LISTEN &
sleep 2
xterm -geo 80x45+0-0 -e teeinput $* &