From owner-freebsd-questions@FreeBSD.ORG Thu Aug 2 16:14:27 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 D1A7D16A417 for ; Thu, 2 Aug 2007 16:14:27 +0000 (UTC) (envelope-from jeremy.gransden@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id 90E6D13C458 for ; Thu, 2 Aug 2007 16:14:27 +0000 (UTC) (envelope-from jeremy.gransden@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so222392nzf for ; Thu, 02 Aug 2007 09:14:27 -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:references; b=F6jdMcaeDMvBzZSihXtkF+FhsjSlJfaLc5ACgH9e9d/EIIuN4KbaTks5BUMDHUrMXBdhwwqISsHTesNJ3KF0679gn9yl8grlLDXGzYEgVQyvnBEHCSPFlAa3da3Te+0IlJzdI7G//dvgcg4PvC+ll6fkZOapjfzu5ES2zAjkW5c= 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:references; b=khpQ+2f+qCih/4UjS8VmQDu87fULxPH3wFNLv3LBHeAql7MWMKNnz6oReUS8cR+HkIzu6yhfu+w/1EO6d6pN+YKbx/IPnjqjPP1UpNX4MI1Ng4IphHyufNDzhBL/sIfFO8Jy/Kf0QJAHOjYfojbWxkLCtXj6QYnSp8BOq1PVj5k= Received: by 10.142.157.15 with SMTP id f15mr92624wfe.1186071265824; Thu, 02 Aug 2007 09:14:25 -0700 (PDT) Received: by 10.142.84.6 with HTTP; Thu, 2 Aug 2007 09:14:25 -0700 (PDT) Message-ID: <87f7f4170708020914t19f37106l5a7630feb735ed8d@mail.gmail.com> Date: Thu, 2 Aug 2007 12:14:25 -0400 From: "Jeremy Gransden" To: "Jim Stapleton" In-Reply-To: <80f4f2b20708020906l608c3b24sa6c8f0de7f5c11cd@mail.gmail.com> MIME-Version: 1.0 References: <80f4f2b20708020819l69e054a1ia070efba2b04d2ad@mail.gmail.com> <87f7f4170708020853m5b452071hea5934f854545d34@mail.gmail.com> <80f4f2b20708020906l608c3b24sa6c8f0de7f5c11cd@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:14:27 -0000 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