From owner-freebsd-questions Thu Jul 29 8: 3:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from stevenson.cogsci.ed.ac.uk (stevenson144.cogsci.ed.ac.uk [129.215.144.1]) by hub.freebsd.org (Postfix) with ESMTP id A14A214C8F for ; Thu, 29 Jul 1999 08:03:22 -0700 (PDT) (envelope-from richard@cogsci.ed.ac.uk) Received: (from richard@localhost) by stevenson.cogsci.ed.ac.uk (8.8.7/8.8.7) id QAA05314; Thu, 29 Jul 1999 16:03:12 +0100 (BST) Date: Thu, 29 Jul 1999 16:03:12 +0100 (BST) Message-Id: <199907291503.QAA05314@stevenson.cogsci.ed.ac.uk> From: Richard Tobin Subject: Re: Stange redirection To: guido@ipa.net, freebsd-questions@FreeBSD.ORG In-Reply-To: Dave Montgomery's message of Thu, 29 Jul 1999 21:10:39 -0500 Organization: just say no Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is there anyway way to redirect all output from a shell (tcsh in > particular) through a filter and then to the screen? The usual problem with this sort of thing is that if you pipe output it gets buffered, which doesn't work very well for user interaction :-) A solution is to use a pseudo-terminal instead of a pipe, and you may find that the easiest way to do that is to hack the source of /usr/bin/script (if you remove the file logging, it's a null filter). -- Richard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message