From owner-freebsd-questions@FreeBSD.ORG Sat Jun 2 11:46:12 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 80D7A16A400 for ; Sat, 2 Jun 2007 11:46:12 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id 05D4213C484 for ; Sat, 2 Jun 2007 11:46:11 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l52Bk5ox023360; Sat, 2 Jun 2007 13:46:06 +0200 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Sat, 2 Jun 2007 13:46:04 +0200 User-Agent: KMail/1.9.6 References: <87f7f4170706020423x6f67e84bv366cc765d21529a6@mail.gmail.com> In-Reply-To: <87f7f4170706020423x6f67e84bv366cc765d21529a6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706021346.05267.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Jeremy Gransden Subject: Re: See output of local xterm session on remote ssh session. 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: Sat, 02 Jun 2007 11:46:12 -0000 On Saturday 02 June 2007, Jeremy Gransden wrote: > Hello, > > I have been searching Google for a few days for this but have not been > coming up with the correct answer. Then again maybe I am asking the wrong > question... If I start a process, i.e. compile a kernel, on my desktop, how > can I then connect to it from my laptop and see the output of that process > via the ssh session? > > thanks, > Jeremy screen(1) is the tool for this. You can find it in the ports collection (sysutils/screen). For example: $ screen $ cd /usr/src; sudo make buildworld (now press CTRL+A D) On the other machine, ssh into the desktop $ screen -r (press CTRL+A D if you've seen enough) Also, this will protect the running job from accidental (or purposefully) closure of the terminal. HTH, Pieter de Goeje