TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Bill Christensen
from: Henk den Adel
date: 1997-01-31 22:50:44
subject: redirection

Hi Bill,

 BC> I would say " appli  log " would get the
data that is slated
 BC> to go to your screen to be sent to the "log" file.

That does not work, alas a 0 bytes long logfile.

 BC> Instead of using printf [..] use fprintf (stderr,.....) which sends your
 BC> debugging statements to the "log" file.

appli  log

works fine. Tnx.

 BC> In order to get info into your "log" file when OS2 is
about to shut down
 BC> your "appli", setup and use the SIGNAL functions. When
OS2 is about to
 BC> shutdown your "appli" it will call one of appli's signal
functions which
 BC> will allow ONE function to run

I never used it, however i'll toy around with it.

73 es cuagn,
 Henk

--- GoldED 2.50+
* Origin: Henks Toolbox, Mail only (2:286/415)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 286/415 4 700 280/801 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.