From owner-freebsd-questions@FreeBSD.ORG Tue Feb 27 03:27:44 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 E8D2B16A400 for ; Tue, 27 Feb 2007 03:27:43 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 8458B13C478 for ; Tue, 27 Feb 2007 03:27:43 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so916497ugh for ; Mon, 26 Feb 2007 19:27:42 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BhHrVlhFVrigPtbpSQLTqy8e+HmH9vf6ezRHHTpUl7nbh/91SruLcP1UEr639cbF040uLkBF0UxVz4hppRWxKWGafsHxhFTmSLlVYSW7WM6E0Wfb6gtPY2cZwc4pLAIoPjeGlRhvC+AKAJrv4zhb+epnDZZIbAKWU6dwRBwFpqY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XT3PWKtGJEins/4n8Is/FMj8/mWFoT6RoOQoNB8nekr2/klxmk+hV4ziJAsrsFRDpOYbB45hCoO/kZdwvGUN96XCYIDKeeOQXmVMmsUQJt1phHqka9NspgLdlVQk6/zXHcYsIezFznrbRYhjy6y8YTcB0DQMo8KkiV8Z5jUoGmY= Received: by 10.114.192.1 with SMTP id p1mr242712waf.1172546861343; Mon, 26 Feb 2007 19:27:41 -0800 (PST) Received: by 10.114.73.6 with HTTP; Mon, 26 Feb 2007 19:27:41 -0800 (PST) Message-ID: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com> Date: Mon, 26 Feb 2007 20:27:41 -0700 From: "Kelly Jones" To: freebsd-questions@freebsd.org, linuxusersgroup@googlegroups.com, nmlug@nmlug.org, nmosug-l@mailman.swcp.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: 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:27:44 -0000 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? My current kludges (both ugly): 1. do "command > file" and then "tail -f file | less" (this mostly works, but takes a while to get started because of buffering issues) 2. do "command | less", and once I'm happy w/ the output, hit 'q' to quit less (and thus terminate program) and then do "command > /dev/null" (works, but wastes time, since I have to run the command once just to look at the first few lines and then abort it) -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile.