From owner-freebsd-newbies@FreeBSD.ORG Tue Aug 10 13:39:11 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 8879C16A4CE for ; Tue, 10 Aug 2004 13:39:11 +0000 (GMT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1401A43D1F for ; Tue, 10 Aug 2004 13:39:11 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [69.27.131.0] ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.0); Tue, 10 Aug 2004 08:35:24 -0500 Message-ID: <4118CF72.7010702@daleco.biz> Date: Tue, 10 Aug 2004 08:36:50 -0500 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040712 X-Accept-Language: en-us, en MIME-Version: 1.0 To: DerAlSem References: <200408100923.54206.stevan.tiefert@freenet.de> <1371689745.20040810114424@inbox.ru> In-Reply-To: <1371689745.20040810114424@inbox.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Aug 2004 13:35:37.0052 (UTC) FILETIME=[EB6809C0:01C47EDE] cc: questions@freesd.org 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 13:39:11 -0000 DerAlSem 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... > > > Hello, Technical questions should be posted to the questions@freebsd.org list (which I am cc'ing). I assume that you are being told to use the "screen" port /usr/ports/misc/screen, which is a GNU program. I don't know much about that. You could also use script(1), which was designed for this sort of thing. And yes, you could use "&" and console redirection... % somecommand > /home/me/logfile & This works under either the Bourne or C shells and would send "somecommand" into the background under shell job control and send all stdout to the logfile. Error messages, however, would still be written to console. If you use Bourne shell, you can redirect both stdout and stderr by doing it this way: $ somecommand> /home/me/logfile 2>&1 But csh/tcsh doesn't like that, so script(1) is the better option. HTH, Kevin Kinsey