From owner-freebsd-questions@FreeBSD.ORG Tue Feb 27 03:46:59 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 B3EC816A401 for ; Tue, 27 Feb 2007 03:46:59 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id 8E9E013C428 for ; Tue, 27 Feb 2007 03:46:59 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id C54401E0168; Mon, 26 Feb 2007 22:46:58 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by out1.internal (MEProxy); Mon, 26 Feb 2007 22:46:58 -0500 X-Sasl-enc: 9IwG+EVFqYAGZrnUbP9TFHJpyFowM6nAiryYGqeL/G8w 1172548017 Received: from [10.1.10.136] (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTP id 926051DC5D; Mon, 26 Feb 2007 22:46:56 -0500 (EST) In-Reply-To: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com> References: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jeffrey Goldberg Date: Mon, 26 Feb 2007 21:46:53 -0600 To: Kelly Jones X-Mailer: Apple Mail (2.752.2) Cc: freebsd-questions@freebsd.org Subject: Re: Effectively detaching 'less' from a pipe 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: Tue, 27 Feb 2007 03:46:59 -0000 [I've removed the lists for which I'm not a member] On Feb 26, 2007, at 9:27 PM, Kelly Jones wrote: > I often run commands piped to 'less', to make sure the command is > working OK by looking at the first few lines of output. > > Once I'm convinced, though, I'd like to "get rid" of less, and just > have the rest of stdout spewed to the terminal (and/or /dev/null > and/or to a file I specify). > > In other words, I want to stop hitting 'space' until my program > terminates. > > How can I do this? man tee so command | tee outputfile | less Then :q out of less when you are done and the output will have gone to outputfile -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/