Message-ID: <20020718053047.79723.qmail@web11302.mail.yahoo.com> Date: Wed, 17 Jul 2002 22:30:47 -0700 (PDT) From: Pedro Izecksohn Subject: Re: Logging data from an interrupt to a file. To: djgpp AT delorie DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Why don't you create a new file every 5 minutes, (and save and close the old one), with a little modified filename? Or maybe: Try using fp=fopen("filename","a"); and save the file every 5 minutes. (I never used fopen with "a", so I don't know exactly how it works.) Till the next time, --- Thomas Harte wrote: > I wish to write a program that will log all keyboard > events during the > execution of another program. This has not proved too > taxing to write - I > have simply followed the various parts of the DJGPP FAQ > on interrupt > handlers, chained one to the keyboard interrupt, and > logged all activity in > that. The second program is then spawn'd and runs > perfectly happily. > > My problem is that although logging to a memory buffer is > nice, I would like > to log to disc. But I can't find a way to do this, > assuming that I don't > have the memory to log all keypresses and then write them > to disc when the > second program terminates. > > What would I do to achieve this? > > -Thomas > __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com