Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2002 14:43:37 -0700
From:      Alfred Perlstein <bright@mu.org>
To:        echo dev <echo_dev@hotmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: C ????
Message-ID:  <20020530214337.GW17045@elvis.mu.org>
In-Reply-To: <F269bpH71yEXUIEAOeI00011e92@hotmail.com>
References:  <F269bpH71yEXUIEAOeI00011e92@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* echo dev <echo_dev@hotmail.com> [020530 13:17] wrote:
> 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..

Have your program ask questions, then fork a child process, then
have the parent exit, it will effectively detach.

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/

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?20020530214337.GW17045>