src/Tools/xlisten
author paulson
Fri, 18 Oct 1996 11:31:33 +0200
changeset 2100 4a299f5408b7
parent 0 a5a9c433f639
child 2118 7c12923a50c6
permissions -rwxr-xr-x
Now checks that $LISTEN is set
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
#! /bin/sh
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#  xlisten -- start a program in one window and create a listener window
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
#     environment variable $LISTEN specifies the file name
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#create the file!
2100
4a299f5408b7 Now checks that $LISTEN is set
paulson
parents: 0
diff changeset
     6
set -e			#fail immediately upon errors
4a299f5408b7 Now checks that $LISTEN is set
paulson
parents: 0
diff changeset
     7
date > ${LISTEN?'Set this variable to the desired filename'}
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
xterm -geo 80x10+0+0 -T Listener -n Listener -e tail -f $LISTEN &
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
sleep 2
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
xterm -geo 80x45+0-0 -e teeinput $* &