From owner-freebsd-questions@FreeBSD.ORG Wed Nov 29 17:52:17 2006 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 1739E16A4AB for ; Wed, 29 Nov 2006 17:52:17 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E9C443EE1 for ; Wed, 29 Nov 2006 17:48:57 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id kATHmk2R035766; Wed, 29 Nov 2006 09:48:47 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Wed, 29 Nov 2006 12:48:00 -0500 User-Agent: KMail/1.9.4 References: <456DC1C9.3070007@cupid.com> <20061129173542.GA3787@kobe.laptop> <200611291243.13342.lists@jnielsen.net> In-Reply-To: <200611291243.13342.lists@jnielsen.net> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611291248.00940.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Dan Sikorsky Subject: Re: Using Screen 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: Wed, 29 Nov 2006 17:52:17 -0000 On Wednesday 29 November 2006 12:43, John Nielsen wrote: > On Wednesday 29 November 2006 12:35, Giorgos Keramidas wrote: > > On 2006-11-29 12:22, Dan Sikorsky wrote: > > > Hey, I have a good question for you guys. > > > > > > Lets say, I started a job on a computer, if you must know, portmanager > > > -u , and then left... but I know its sitting there stuck on a config > > > window waiting for someone to press enter... I do not have screen > > > installed on this machine... > > > > > > my question is, can I ssh in, install screen (or not i suppose it > > > wouldnt matter) and bring that process to either screen, or my ssh > > > terminal? > > > > In general, "no". > > > > You can _try_ using watch(8), from a superuser session, but I am not > > sure if it will catch whatever has already been displayed on the side > > of the watched terminal... > > The watch utility will only display writes that happen after it was > started. > > See also vidcontrol(1), in particular the -p and -P options. You can get > a "screen shot" of a virtual terminal that way. And to answer your original question, no I don't think there's a way to bring a process over to another terminal, but you could use vidcontrol -P to see what's on the screen already (this only works from "real" console virtual terminals, e.g. /dev/ttyvX) and then use watch -W to "take over" from there. JN