Error messages to the console

Gary Weimer 253-7796 weimer at garden.ssd.kodak.com
Sat May 18 03:25:29 AEST 1991


In article <26918 at adm.brl.mil>, gautier at charly.taclog.af.mil (Sgt
Richard Gautier) writes:
|> For standard error messages of the OOOPS, I messed up
|> variety, I would depend on just writing the output to
|> stderr with a fprintf(stderr,"OOPS");
|> 
|>   However, if you must write to the console, you can
|> open /dev/console on most Unix boxes, and fprintf your
|> info to that.  On some Unix boxes, there is an errorlog
|> that is constantly checked and sent to the console (used
|> for DISK crashes, etc.)  Do a ps and see if you have any
|> cat -u processes running for console.

Isn't syslog(3) the "standard" way? I don't have access to many Unix
varieties, so I don't know...



More information about the Comp.unix.questions mailing list