From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jude DaShiell Newsgroups: gmane.emacs.help Subject: Re: can shell mode keep a log? Date: Wed, 7 Sep 2022 01:26:47 -0400 Message-ID: <6691f429-9786-dfcd-76d2-a9d7ba0c787@panix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5629"; mail-complaints-to="usenet@ciao.gmane.io" To: Samuel Wales , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 07:27:30 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVnaz-0001Lp-9w for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 07:27:29 +0200 Original-Received: from localhost ([::1]:52552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVnax-0000Xz-QM for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 01:27:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVnaP-0000Xg-Jf for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 01:26:53 -0400 Original-Received: from mailbackend.panix.com ([166.84.1.89]:35066) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVnaL-0006Q9-D4 for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 01:26:53 -0400 Original-Received: from panix1.panix.com (panix1.panix.com [166.84.1.1]) by mailbackend.panix.com (Postfix) with ESMTP id 4MMrN73w9jzPSH; Wed, 7 Sep 2022 01:26:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1662528407; bh=daKCECFIBah68A/Gc2QR9331UFBqEeFOXfSDMVtCe+8=; h=Date:From:To:Subject:In-Reply-To:References; b=IBw9+vUzxfErMB4hLyfqcbfQ8MS9TPpeEEpVbJSyjqwoI7xPyFcXfwq1c48ApPS3B CnbNQzo775fEp3bcjNm/UgO+yvs/rcL5o5+XSRvQoT+n0dSsU361U9M7QmJ6wfezhg v7ZzAfuXQr/04QYuM1je4CYfEIbkV4j4Ti3SSxp0= Original-Received: by panix1.panix.com (Postfix, from userid 20712) id 4MMrN73VlZzcbc; Wed, 7 Sep 2022 01:26:47 -0400 (EDT) Original-Received: from localhost (localhost [127.0.0.1]) by panix1.panix.com (Postfix) with ESMTP id 4MMrN73GwBzcbC; Wed, 7 Sep 2022 01:26:47 -0400 (EDT) In-Reply-To: Received-SPF: pass client-ip=166.84.1.89; envelope-from=jdashiel@panix.com; helo=mailbackend.panix.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139292 Archived-At: can shell-mode run tee? If yes it ought to be possible. That may not even be necessary if shell-mode can create and save history. run command in shell-mode you want logged, and suffix it with | tee .log where is the name of the log to save. This is one problem I have had outside of shell-mode and finally learned how to use the tee command. Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) . On Tue, 6 Sep 2022, Samuel Wales wrote: > is it possible and reasonable to log everything in every shell buffer > to a file? i can imagine lots of output, but i could have the logs go > into an auto-expired dir. but would performance ok? > >