From owner-freebsd-questions@FreeBSD.ORG Sat Jun 2 12:05:34 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 514B516A468 for ; Sat, 2 Jun 2007 12:05:34 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 0878113C44C for ; Sat, 2 Jun 2007 12:05:34 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-10-135.bredband.comhem.se ([83.253.10.135]:63110 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with smtp (Exim 4.66) (envelope-from ) id 1HuSMP-0007yQ-3o for freebsd-questions@freebsd.org; Sat, 02 Jun 2007 14:05:33 +0200 Received: (qmail 70640 invoked from network); 2 Jun 2007 14:05:31 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 2 Jun 2007 14:05:31 +0200 Received: (qmail 24058 invoked by uid 1001); 2 Jun 2007 14:05:31 +0200 Date: Sat, 2 Jun 2007 14:05:31 +0200 From: Erik Trulsson To: Paul Fraser Message-ID: <20070602120530.GA23984@owl.midgard.homeip.net> Mail-Followup-To: Paul Fraser , Jeremy Gransden , freebsd-questions@freebsd.org References: <87f7f4170706020423x6f67e84bv366cc765d21529a6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14 (2007-02-12) X-Originating-IP: 83.253.10.135 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1HuSMP-0007yQ-3o. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1HuSMP-0007yQ-3o 9ff5073b3bc6db644d5fe903eb911882 Cc: Jeremy Gransden , freebsd-questions@freebsd.org 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 12:05:34 -0000 On Sat, Jun 02, 2007 at 09:44:58PM +1000, Paul Fraser wrote: > On 6/2/07, Jeremy Gransden wrote: > >how > >can I then connect to it from my laptop and see the output of that process > >via the ssh session? > > A very popular solution is screen (sysutils/screen). Run a screen > session, then you can share the session from any number of clients, or > attach/detach at will. Quite good if, for example you're running a > process (within a screen session, of course!) in an xterm, and you > want to restart X. Simply detach the screen session, restart X, then > reattach screen to your xterm. But if you already have started the process that you wish to monitor and did not have the foresight to start it in some special manner then neither sysutils/screen, script(1) or redirecting the output to a file will help. Using watch(8) can help though. -- Erik Trulsson ertr1013@student.uu.se