redirecting the output of pg to another tty

Mike Verstegen mdv at comtst.domain.com
Fri Sep 28 08:21:59 AEST 1990


We have an application where we have one regular dumb terminal and an
"auxillary" terminal that is display only (no keyboard). We want to
page through a file and display it on the aux terminal. I have tried
things like
	pg FILE > /dev/ttyxx		# no good -- input attached to ttyxx
	pg FILE | cat > /dev/ttyxx	# scrolls through without stopping
and another approach using mknod and trying to put a pipe betwen them to 
no avail. This appears to be because pg wants to re-open stdout or /dev/tty
to get the controlling input from the user for when it's used at the end
of the pipe.

Before I go out and dig through the archives and pick up 'less' or something
similar, does anybody see an easier way to do this? (If Larry Wall can do it
in perl, I'll finally have an excuse to get it!)

Thanks for your assistance,

Mike
--
Mike Verstegen          Domain Systems, Inc           Voice +1 407 686-7911
..!uunet!comtst!mdv     5840 Corporate Way #100       Fax   +1 407 478-2542
mdv at domain.com          West Palm Beach, FL 33407



More information about the Comp.unix.questions mailing list