comp.lang.ada
 help / color / mirror / Atom feed
From: john schneider <j-schneider@ti.com>
Subject: Re: Dump screen content into file....
Date: 1996/12/09
Date: 1996-12-09T00:00:00+00:00	[thread overview]
Message-ID: <32AC8356.41C67EA6@ti.com> (raw)
In-Reply-To: 32AC4A25.41C6@cnam.fr


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.




  reply	other threads:[~1996-12-09  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-09  0:00 Dump screen content into file BAMBA ISMAEL 19320
1996-12-09  0:00 ` john schneider [this message]
1996-12-09  0:00 ` Larry Kilgallen
1996-12-10  0:00   ` BAMBA ISMAEL 19320
1996-12-10  0:00     ` Larry Kilgallen
1996-12-10  0:00   ` Jon S Anthony
1996-12-11  0:00     ` Fergus Henderson
1996-12-11  0:00   ` Jon S Anthony
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox