From owner-freebsd-stable@FreeBSD.ORG Thu Mar 8 13:23:31 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 D0D9316A402 for ; Thu, 8 Mar 2007 13:23:31 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (grnl-static-02-0046.dsl.iowatelecom.net [69.66.56.110]) by mx1.freebsd.org (Postfix) with ESMTP id 914E713C461 for ; Thu, 8 Mar 2007 13:23:31 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id l28DNUub063661; Thu, 8 Mar 2007 07:23:30 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id l28DNT5m063659; Thu, 8 Mar 2007 07:23:29 -0600 (CST) (envelope-from brooks) Date: Thu, 8 Mar 2007 07:23:29 -0600 From: Brooks Davis To: sthomas@nerim.net Message-ID: <20070308132329.GA63469@lor.one-eyed-alien.net> References: <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net> User-Agent: Mutt/1.5.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Thu, 08 Mar 2007 07:23:30 -0600 (CST) 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 13:23:31 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 08, 2007 at 02:03:24PM +0100, sthomas@nerim.net wrote: > Hello, >=20 > 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. >=20 > So I run my process like this : # myprogram &, then I exit the shell. >=20 > 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. >=20 > 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 ? I believe what you are looking for is nohup(1). -- Brooks --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF8A5QXY6L6fI4GtQRAit/AJ9sxyhKIJMzL3gfD4m4LGdJNUAPkQCgyEJo uUEQw1kSvHADrZvHTpjh2qc= =MpvV -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--