Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ORION.CERFACS.FR!farestam From: farestam@ORION.CERFACS.FR (Stefan Farestam) Newsgroups: comp.sys.sgi Subject: Re: PAGER program wanted Message-ID: <9102032322.AA00121@ultima.cerfacs.fr> Date: 3 Feb 91 23:22:27 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 40 Rick Becker writes: >Many utilities allow the setting of a shell variable, PAGER, >to specify a filter through which printed output should be piped. >Often, people use PAGER=more or something like that in order to >prevent output from scrolling by too fast. > >I wanted to find a simple way to produce a PAGER that would pop up >a new window and run more in that window. By simple, I mean a short-ish >shell script that uses readily available commands like wsh. >However, try as I might, I can't figure out how to build it. > >Am I just unaware of an appropriate command or is the task inherently >difficult? Since the command defined by PAGER (or MANPAGER) is feeded the data by standard input it does not work to do: setenv PAGER 'wsc -c more' However, it is possible to do: setenv PAGER 'cat > /tmp/.m; wsh -c more /tmp/.m' It is probably a good idea to add the option -H to the invocation of wsh. Personally I would use winterm instead of wsh, as the look and feel of winterm is defined by the environmental variable WINTERM. /Stefan Farestam -- ................................................................. . Stefan Farestam . . __ __ __ _ _ _ . . / |_ )|_ /_\/ ( European Centre for Research and . . \_ |__\| / \__) Advanced Training in Scientific Computation . .................................................................