Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2002 00:28:25 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        echo dev <echo_dev@hotmail.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: C ????
Message-ID:  <20020530212825.GA24730@hades.hell.gr>
In-Reply-To: <20020530230109.A10339@haegar.informatik.uni-wuerzburg.de>
References:  <F269bpH71yEXUIEAOeI00011e92@hotmail.com> <20020530230109.A10339@haegar.informatik.uni-wuerzburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-05-30 23:01 +0200, Matthias Buelow wrote:
>echo dev writes:
>>I am coding a scheduler. It is going to paste a msg to the screen
>>after a certain time. How might i run this in the background? I
>>tried just casting it into the background with the name& but it
>>did'nt work. I need it to asked the questions and then put it self
>>into the background. If someone could give me some liks to some
>>docs I woould be vary grateful..

Look at daemon(3).  You can make your program do the equivalent of:

	% ./a.out
	[ ask questions & check answers for validity ]
	[ call daemon(3) to become a background process ]

- Giorgos


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?20020530212825.GA24730>