Path: utzoo!attcan!uunet!comtst!comtst.domain.com From: mdv@comtst.domain.com (Mike Verstegen) Newsgroups: comp.unix.questions Subject: redirecting the output of pg to another tty Message-ID: <305@comtst.UUCP> Date: 27 Sep 90 22:21:59 GMT Sender: mdv@comtst.UUCP Followup-To: mdv@domain.com Organization: Domain Systems, Inc., West Palm Beach, FL Lines: 22 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@domain.com West Palm Beach, FL 33407