From owner-freebsd-questions@FreeBSD.ORG Thu Aug 2 16:16:21 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 5AEE016A41F for ; Thu, 2 Aug 2007 16:16:21 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id D783613C467 for ; Thu, 2 Aug 2007 16:16:20 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so155130nfb for ; Thu, 02 Aug 2007 09:16:19 -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=Al2KS96FJL9n6UbfYwWOnvS+Q1nr5GWZXu7m0jPeOl/bkRA8WCslJPAC9AX8imUVlHNugFdZMY4bZ4ryNR2MBHjqsv1gLlMxsemXho6Xe+l7pj0paFwenq9GDXFPj5RcX7G5wyusXvFHoU9dlLPKI8DuyU3TbPODrvBLGHiBvn8= 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=c4iuBBDUTtz4fhqVYd7xvYmYXfsG++IxFSyZlh8Q/+qccNcrFMccxDZzmmcUuzrUA96Xjbqem6BACMW4dUR/KxqnDzhGWZHC512LT/CymDqSAUD7orWdDXoFrn0AloluWwd3p+A5EgTZ2o0UQRuFYwy/HLsa10KDypuX7OOf2LA= Received: by 10.82.111.8 with SMTP id j8mr2711792buc.1186071379112; Thu, 02 Aug 2007 09:16:19 -0700 (PDT) Received: by 10.82.191.14 with HTTP; Thu, 2 Aug 2007 09:16:18 -0700 (PDT) Message-ID: <80f4f2b20708020916r535e0b65w4c2d5b0d2ef00b0b@mail.gmail.com> Date: Thu, 2 Aug 2007 12:16:18 -0400 From: "Jim Stapleton" To: "Jeremy Gransden" In-Reply-To: <87f7f4170708020914t19f37106l5a7630feb735ed8d@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> <80f4f2b20708020906l608c3b24sa6c8f0de7f5c11cd@mail.gmail.com> <87f7f4170708020914t19f37106l5a7630feb735ed8d@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:16:21 -0000 On 8/2/07, Jeremy Gransden wrote: > > > > On 8/2/07, Jim Stapleton wrote: > > 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 > > > > > > I guess i was a little vauge..... sorry. > > What you will need to do is run the program screen, (sysutils/screen), on > the macine that you will want to monitor, BEFORE you start your processes. > the man page should be able to tell you how to attach/detach from the screen > session. I use this all the time in much the same manner as you are trying. > > thanks, > jeremy > > OK, I didn't get that about the port. Thanks. I'll install that next. Thanks for the assist everyone. -Jim Stapleton