From owner-freebsd-questions@FreeBSD.ORG Fri Jun 29 08:50:51 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 B66BB16A468 for ; Fri, 29 Jun 2007 08:50:51 +0000 (UTC) (envelope-from lordboink@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 6156513C480 for ; Fri, 29 Jun 2007 08:50:51 +0000 (UTC) (envelope-from lordboink@gmail.com) Received: by wr-out-0506.google.com with SMTP id 69so688658wra for ; Fri, 29 Jun 2007 01:50:50 -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=bIot4bj/52Q+0SaDsQZiv2ijqyeAGEVn1oPosoWrhd328aVIeGtbSVndiTtMnb1gDKjha8dlKAJYb7yQn/JFU1SiInCgr0fAmW85X/zCb4/AVrDbtqlOjyrOU/8S2tTAC1cqvV5tto7ey3Vrk4xxlL6OLj19xCQzoW46zoOFmAs= 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=a2I1vskCALpvHaZhG6KrzpGxhitT6+uPXWC0jzNRh/SGD7WKcGAPFuY/FQVZq3qtAJciNQJ2hYD3bT5iZa/PEh0HhfLkU+aucmyVgWxjyJA35jKY5X5RpYwQFeNM6T5H/imYCUjrAv2Qs7w9EFYIZgEXHFsWwRGvhmtlhn1+AaA= Received: by 10.78.21.7 with SMTP id 7mr1451433huu.1183107049223; Fri, 29 Jun 2007 01:50:49 -0700 (PDT) Received: by 10.78.47.13 with HTTP; Fri, 29 Jun 2007 01:50:49 -0700 (PDT) Message-ID: <73cb07950706290150i1552b0abr2c8a5c1c80a6096a@mail.gmail.com> Date: Fri, 29 Jun 2007 10:50:49 +0200 From: "Steve W" To: freebsd-questions@freebsd.org In-Reply-To: <20070625115202.d07609d9.wmoran@potentialtech.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> Cc: oim , Bill Moran 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:50:51 -0000 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