Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 1999 13:57:03 -0400 (EDT)
From:      "Brian Mitchell (ISSATL)" <bmitchel@iss.net>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Let a daemon process print a message
Message-ID:  <Pine.BSF.3.96.990913135151.367F-100000@egon.iss.net>
In-Reply-To: <Pine.GSO.3.96.990913132102.8408A-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
syslog() with the proper facility is probably the best way to do this.
Another possibility is opening /dev/console, but I think that will aquire
a controlling terminal.

On Mon, 13 Sep 1999, Zhihui Zhang wrote:

> 
> Can anyone tell me how to let a daemon process print a message to the
> console?  Adding printf() does not work (I wonder if a daemon process
> has been cut of relationship with stdout).  Thanks for any help.
> 
> --------------------------------------------------
> Zhihui Zhang.  Please visit http://www.freebsd.org
> --------------------------------------------------
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990913135151.367F-100000>