From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,adb38b4974db5d4b X-Google-Attributes: gid103376,public From: john schneider Subject: Re: Dump screen content into file.... Date: 1996/12/09 Message-ID: <32AC8356.41C67EA6@ti.com>#1/1 X-Deja-AN: 203199550 references: <32AC4A25.41C6@cnam.fr> content-type: text/plain; charset=us-ascii mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02 (X11; I; SunOS 4.1.3 sun4m) Date: 1996-12-09T00:00:00+00:00 List-Id: BAMBA ISMAEL 19320 wrote: > > Hi all! > > Does anybody knows how to save a rs232 terminal screen( standard output) > into a file and conversely (dump a given file into memory)? > > Than you for help! > > P.S:If Robert Dewar is to answer,please let him be a little bit humble > and stop speculating about what ones in his mind fails to understand or > not.I indeed need some hints.but this in no way makes me stupid.let > M.Dewar know i might not know Ada but i do know some other languages.in > addition to this, i do not feel like arguing about the "turbo" features > of pascal... > > someone once said:" if i had to choose between betraying my friends or > betraying my country, i pray i'll have the guts to betray my country!" > forgot the author. I assume, from the reference to "standard output", that you're talking about a Unix-based machine. If this is the case, you can pipe the output of your program through the Unix "tee" command which can write/append the data to a file and also send it to your terminal. For example: command | tee log.txt will store the output from "command" in a file called "log.txt" and also display it on your screen. There ARE some limitations to this, especially if you are doing some sort of terminal input between your outputs, but if your program is just dumping out some data, it will work fine. John Schneider j-schneider@ti.com 972-575-3736 My opinions are my own -- but you are welcome to share them.