From owner-freebsd-stable@FreeBSD.ORG Fri Mar 9 00:14:26 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D12EA16A409 for ; Fri, 9 Mar 2007 00:14:26 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id 736E613C441 for ; Fri, 9 Mar 2007 00:14:26 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 31455 invoked by uid 399); 9 Mar 2007 00:14:25 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 9 Mar 2007 00:14:25 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45F0A6DE.4090604@FreeBSD.org> Date: Thu, 08 Mar 2007 16:14:22 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: sthomas@nerim.net References: <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net> In-Reply-To: <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Background process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 00:14:26 -0000 sthomas@nerim.net wrote: > Hello, > > I connect to my freebsd box via ssh using putty from a WindowsXP > workstation, I want to run a process on the freebsd box, then close my ssh > session (closing putty) while keeping the process running. > > So I run my process like this : # myprogram &, then I exit the shell. screen is serious overkill in this scenario, although it's advocates tend to see it as the solution for every problem. :) No one has offered what I think is the most sensible option, which is to check the documentation for your program to see if it has a command line option to background itself properly. I'm not familiar with moinmoin, but I have a hard time believing that it doesn't have this capability. Failing that, if you need to preserve anything that is emitted from the program, nohup is probably your best bet. If it isn't going to spit anything out on the terminal, take a look at daemon(8), which you probably will want to run with the -f option. Good luck, Doug -- This .signature sanitized for your protection