Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2007 07:23:29 -0600
From:      Brooks Davis <brooks@freebsd.org>
To:        sthomas@nerim.net
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Background process
Message-ID:  <20070308132329.GA63469@lor.one-eyed-alien.net>
In-Reply-To: <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net>
References:  <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070308132329.GA63469>