From owner-freebsd-newbies@FreeBSD.ORG Tue Aug 10 18:35:29 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04F4A16A4CE for ; Tue, 10 Aug 2004 18:35:29 +0000 (GMT) Received: from fidel.freesurf.fr (fidel.freesurf.fr [212.43.206.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id BED7943D2D for ; Tue, 10 Aug 2004 18:35:28 +0000 (GMT) (envelope-from ogautherot@freesurf.fr) Received: from freesurf.fr (du-209-9.nat.adsl.claranet.fr [212.43.209.9]) by fidel.freesurf.fr (Postfix) with ESMTP id 82D4A2A61AF; Tue, 10 Aug 2004 20:35:27 +0200 (CEST) Message-ID: <41191570.1010104@freesurf.fr> Date: Tue, 10 Aug 2004 20:35:28 +0200 From: Olivier Gautherot User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040709 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sietze References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: DerAlSem cc: freebsd-newbies@freebsd.org Subject: Re: Starting program in background... X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 18:35:29 -0000 sietze wrote: > > How can i run program in background? It cannot be run as a deamon. I > > read in manual, that i should use "screen" command. But this prog is > > port from linux, and it seems, there's no screen command under > > FreeBSD. Starting with "&" parametr have no effect... It's giving me > > pid, but program continues output to console... > >Correct me if I am wrong, but adding "&" to a command only means that the >shell does not wait for the command to finish before returning you to the >prompt. > >If the command produces any output it will go to the standard output stream, >usually the screen. >Piping the output into an alternative output stream, using ">" is not a >solution? > > From a general point of view, there are cases where you want to detach your process from a terminal. That's where the at command can help. Otherwise, pipes and redirections can often do miracles :-) Cheers Olivier