From owner-freebsd-hackers Thu May 30 14:45:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id D56AA37B403 for ; Thu, 30 May 2002 14:45:20 -0700 (PDT) Received: from hades.hell.gr (patr530-a182.otenet.gr [212.205.215.182]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4ULjHdO013388 for ; Fri, 31 May 2002 00:45:18 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4ULjGV3028867 for ; Fri, 31 May 2002 00:45:16 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g4ULSR5q025600; Fri, 31 May 2002 00:28:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 31 May 2002 00:28:25 +0300 From: Giorgos Keramidas To: echo dev Cc: hackers@FreeBSD.ORG Subject: Re: C ???? Message-ID: <20020530212825.GA24730@hades.hell.gr> References: <20020530230109.A10339@haegar.informatik.uni-wuerzburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020530230109.A10339@haegar.informatik.uni-wuerzburg.de> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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