From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Newbie: Submit whole buffer and capture output Date: Tue, 18 Dec 2007 06:28:25 +0200 Message-ID: References: <4b90cdc3-ab54-40f8-bf51-c5919f5ac754@d21g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1197952140 14482 80.91.229.12 (18 Dec 2007 04:29:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 04:29:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 18 05:29:11 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4U4t-00068Z-Aj for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 05:29:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4U4a-0002yJ-0k for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Dec 2007 23:28:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4U4K-0002wH-RP for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 23:28:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4U4I-0002w5-Ev for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 23:28:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4U4I-0002w2-9K for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 23:28:34 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4U4I-0002Qx-0P for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 23:28:34 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-203-142.inter.net.il [84.229.203.142]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EJR64609 (AUTH halo1); Tue, 18 Dec 2007 06:28:22 +0200 (IST) In-reply-to: <4b90cdc3-ab54-40f8-bf51-c5919f5ac754@d21g2000prf.googlegroups.com> (Matthew.Pettis@gmail.com) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50165 Archived-At: > From: "Matthew.Pettis@gmail.com" > Date: Mon, 17 Dec 2007 06:33:28 -0800 (PST) > > I code perl scripts, and I want to find out how to submit a whole > buffer (with a shebang at top) to the shell and capture the output > somewhere in Emacs -- probably the *command shell* window, which I > know nothing about other than the name. You want "M-|". Invoke Perl in a way that makes it read the script from its standard input.