From owner-freebsd-questions@FreeBSD.ORG Thu Aug 2 16:06:16 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A3CC16A417 for ; Thu, 2 Aug 2007 16:06:16 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by mx1.freebsd.org (Postfix) with ESMTP id 2090A13C461 for ; Thu, 2 Aug 2007 16:06:15 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so519153fka for ; Thu, 02 Aug 2007 09:06:14 -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=J0qVXsSfTZ0/gjq+KNa9TAW4q6cuRr675cdQ5Kfbhf6FWIjE3OpWdQJVFIReoRsxiOfhSdcjaq9+ghafKX3bdzN8ENXzZ9ESOF5znCnI/saFkJFkl74SrhytZ1DuDrWMm4E88PyQa4tuYxxdTsXi3OjsmZKK1oznAcUNIkZ+tVM= 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=rdwKGxHYn/NttijaIqNL3ZlYqrIuqwmJmn/kkZ4C2rcfpXQ2L4LomYHB6uEp6+rQbuTbyDr5OdvlpKWYLeDgka4fXNQxiwen9Jl5cWpXezLoVy93duUIFmpfZ8vUYevxCTlWhfeLQiBb78LleyUKpCQ6obWZfKoMveTQb8iQWRE= Received: by 10.82.106.14 with SMTP id e14mr2689514buc.1186070774343; Thu, 02 Aug 2007 09:06:14 -0700 (PDT) Received: by 10.82.191.14 with HTTP; Thu, 2 Aug 2007 09:06:14 -0700 (PDT) Message-ID: <80f4f2b20708020906l608c3b24sa6c8f0de7f5c11cd@mail.gmail.com> Date: Thu, 2 Aug 2007 12:06:14 -0400 From: "Jim Stapleton" To: "Jeremy Gransden" In-Reply-To: <87f7f4170708020853m5b452071hea5934f854545d34@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20708020819l69e054a1ia070efba2b04d2ad@mail.gmail.com> <87f7f4170708020853m5b452071hea5934f854545d34@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: attaching a terminal to 'join' another? 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: Thu, 02 Aug 2007 16:06:16 -0000 On 8/2/07, Jeremy Gransden wrote: > > > > On 8/2/07, Jim Stapleton wrote: > > Sorry if my question is a bit confusing - I'm not even sure the proper > > terminology, so I don't know what the best way to start looking is. > > > > I'm rebuilding a system at home, and I'd like to check how the build > > is going at a slow time at work sometimes. I can connect to the system > > from work (ssh into my main box, and then from there, ssh to the > > system I'm working on). I have a terminal opened on that system > > (actually, another ssh session fron the main box), and I'd like to > > have my new connection attach to that terminal session, if possible, > > so that I can just pick up where I left off, and monitor it from here. > > Is this possible? > > > > Maybe your looking for screen. > > try > man screen > for more details. > thanks, > jeremy > I was actually thinking console for that part of the terminology, but yeah, that's what I want to attach to, the man page didn't tell me how though. This seemed relevant: Output to a virtual console that not currently is on the display is saved in a buffer that holds a "screenfull" (normally 25) lines. Any output written to /dev/console (the original console device) is echoed to /dev/ttyv0. However, cat'ing and less'ing the device did nothing, except act as if it were waiting for input, and none was coming. I however did find out which screen I'm on using ps -A and grep: sjss@legolas 12:01:15 (0) /ports/java/diablo-jdk15 > ps -A | grep tty sjss 0.0 0 0:00.33 0.6 0 0 0 26343 26339 sshd: sjss@ttyp1 (sshd) sjss 0.0 0 0:09.61 0.5 0 0 0 43906 43903 sshd: sjss@ttyp0 (sshd) So, I want to see what is going on with ttyp0 ttyp0 Thanks, -Jim Stapleton