From owner-freebsd-stable@FreeBSD.ORG Thu Mar 8 17:00:55 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 295CE16A401 for ; Thu, 8 Mar 2007 17:00:55 +0000 (UTC) (envelope-from stefan.lambrev@sun-fish.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id D64D513C471 for ; Thu, 8 Mar 2007 17:00:54 +0000 (UTC) (envelope-from stefan.lambrev@sun-fish.com) Received: from blah.sun-fish.com (localhost [127.0.0.1]) by blah.sun-fish.com (Postfix) with ESMTP id 91F121B10F0E; Thu, 8 Mar 2007 18:00:53 +0100 (CET) Received: from [192.168.3.125] (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 8EFAC1B10F0B; Thu, 8 Mar 2007 18:00:53 +0100 (CET) Message-ID: <45F04145.2090103@sun-fish.com> Date: Thu, 08 Mar 2007 19:00:53 +0200 From: Stefan Lambrev User-Agent: Thunderbird 1.5.0.10 (X11/20070307) 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=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP on BLAH 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: Thu, 08 Mar 2007 17:00:55 -0000 Hi, 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. > > But when I do that, I can see with ps that my process go from "TT" "p0" to > "TT" "p0-" and the application doesn't work anymore. For information, the > program I want to be able to run via ssh then close the ssh session is the > moinmoin wiki which is a wiki written in python. > > In man ps I can see that the trailing "-" after "p0" means my process can > no longer reach the controlling terminal... But what can I do to achieve > my goal ? > Did you try "disown" before closing ssh ? Anyway if you want to be able to restore (on foreground) your application then you need screen from ports. But if you just want to start something as daemon this work for me: ./app ^Z bg disown exit :) > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Best Wishes, Stefan Lambrev ICQ# 24134177