From owner-freebsd-questions@FreeBSD.ORG Fri Jun 29 08:56:07 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B8C0D16A468 for ; Fri, 29 Jun 2007 08:56:07 +0000 (UTC) (envelope-from lordboink@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.179]) by mx1.freebsd.org (Postfix) with ESMTP id 456C613C484 for ; Fri, 29 Jun 2007 08:56:07 +0000 (UTC) (envelope-from lordboink@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so810975ika for ; Fri, 29 Jun 2007 01:56:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YC3aq8v4hGMgDnJtTDCNp1nemsucZy8JmA5H6CDtNbrS06kMxyKzZR8V/vqwMsA8cUWlaTOs1XMrSyDNs97cs7jwJZa5uCCnMdxiGPqMf3yrjtS36B9rYFUy93sETIJ5AYCsmWHgyTqCqAfLAAnhy2ClGSCyiETZZoZ3fwJQzzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nF2rRkCHS0B3gaFsBxA38fO2ek06jwJ67j7SOaesdQCnXxU2ogUD89g1eAjgnY7fp6sB5ActQBjGWXTt1wLqYFYe5DtFxKGWwBDe0rIXmWCpAst9AgIU+BYNx5zKzMDBwECCe7KjQ7RnHSO3uFZfwVdqIOXGQ/fhRlC46yq1G6Y= Received: by 10.78.147.6 with SMTP id u6mr1437698hud.1183107365625; Fri, 29 Jun 2007 01:56:05 -0700 (PDT) Received: by 10.78.47.13 with HTTP; Fri, 29 Jun 2007 01:56:05 -0700 (PDT) Message-ID: <73cb07950706290156q4762d09cube9cb818669c25c2@mail.gmail.com> Date: Fri, 29 Jun 2007 10:56:05 +0200 From: "Steve W" To: freebsd-questions@freebsd.org In-Reply-To: <73cb07950706290150i1552b0abr2c8a5c1c80a6096a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070625115202.d07609d9.wmoran@potentialtech.com> <73cb07950706290150i1552b0abr2c8a5c1c80a6096a@mail.gmail.com> Cc: oim Subject: Re: Hello 1 question about close console X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 08:56:07 -0000 On 29/06/07, Steve W wrote: > On 25/06/07, Bill Moran wrote: > > In response to oim : > > > > > Hello! > > > > > > I have a question about this situation. > > > > > > In home work Pc with FreeBSD Server, real ip and real domain name. > > > When i remote connect ssh2 (consose) from my work.. make on server some.. compile program from ports > > > > > > And some time later i need to close console, but i want, what session not close and compile processing. > > > > > > If i disconect from console all job stop. How disconect from console and come back to my session? > > > > > > Thank you very much!!! > > > > Install/use /usr/ports/sysutils/screen > > > > -- > > Bill Moran > > http://www.potentialtech.com > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > Oim, > > Bill's right, screen is a lifesaver. > > However, the man page is *enormous*, here's a synopsis: > > To make a new screen session (ie a console you can attach/detach to/from): > $ screen -S "caterpillar" > > You will now find yourself in a new terminal. > > To list open screen sessions: > > $ screen -ls > There is a screen on: > 692976.caterpillar (Attached) > 1 Socket in /tmp/uscreens/S-. > > Now, to leave this session open, and return to your previous shell: > > type CTRL + a, then d > > Now list again: > $ screen -ls > There is a screen on: > 692976.caterpillar (Detached) > 1 Socket in /tmp/uscreens/S-. > > If there's only one screen session, you can always re-attach to it directly with > $ screen -d -r > > However, if there is more than one: > > $ screen -ls > There are screens on: > 692976.caterpillar (Detached) > 460276.butterfly (Attached) > 2 Sockets in /tmp/uscreens/S- > > ...you need to specify the one you want: > $ screen -r 692976.caterpillar > > 90% of all I do with screen is with these commands. > > Hope this helps, > Steve > I forgot: to close a screen session: $ exit [screen is terminating] ...and you're back to your original shell (CTRL+D should work, too).