From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-05 08:34:14 PST Xref: gmd.de comp.org.decus:2705 comp.os.vms:41780 comp.sys.dec:13995 comp.unix.advocacy:923 Path: gmd.de!xlink.net!fauern!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Date: 5 Mar 1994 16:34:14 GMT Organization: HST Wide Field/Planetary Camera Distribution: world Message-ID: <2laca6$46u@gap.cco.caltech.edu> References: <1994Feb26.204059.4068@mixcom.mixcom.com> <2l7vpu$764@jac.zko.dec.com>, Reply-To: carl@SOL1.GPS.CALTECH.EDU NNTP-Posting-Host: sol1.gps.caltech.edu In article , rockwell@nova.umd.edu (Raul Deluth Miller) writes: =One more question: how do I get these commands to present this =information to me a screen at a time? There are a number of ways of doing it. You could create a subprocess using TYPE/PAGE and feed the output of your command to a mailbox from which the subprocess is typing. Or you could put code in your procedure to handle the pagination. =Or do I have to do that in my =terminal emulator? [Can be tricky with ordinary terminal emulator on =a high speed connection.] Here's an example of putting the code in the procedure. $ IF F$GETDVI("SYS$OUTPUT", "TRM") $ THEN NLINES = F$GETDVI("SYS$OUTPUT", "TT_PAGE") - 1 $ ELSE NLINES = 0 $ ENDIF $ N = 0 $ LOOP: DEV = F$DEVICE("*") $ IF DEV .EQS. "" THEN EXIT $ WRITE SYS$OUTPUT DEV $ IF NLINES .EQ. 0 THEN GOTO LOOP $ N = N + 1 $ IF N .GE. NLINES $ THEN READ/PROMPT="Hit return to continue" SYS$COMMAND FUBAR $ N = 0 $ ENDIF $ GOTO LOOP -------------------------------------------------------------------------------- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My understanding of astronomy is purely at the amateur level (or below). So unless what I'm saying is directly related to VAX/VMS, don't hold me or my organization responsible for it. If it IS related to VAX/VMS, you can try to hold me responsible for it, but my organization had nothing to do with it.