From owner-freebsd-questions Mon Feb 21 3:26:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by hub.freebsd.org (Postfix) with ESMTP id 6C7DE37BBFC for ; Mon, 21 Feb 2000 03:26:36 -0800 (PST) (envelope-from mark.ovens@uk.radan.com) Received: from radan.demon.co.uk ([158.152.75.22] helo=uk.radan.com) by anchor-post-32.mail.demon.net with smtp (Exim 2.12 #1) id 12Mqyz-0004jg-0W for questions@freebsd.org; Mon, 21 Feb 2000 11:26:34 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from sockeye.uk.radan.com (sockeye [172.16.1.10]) by uk.radan.com (8.6.10/8.6.10) with ESMTP id LAA01726 for ; Mon, 21 Feb 2000 11:26:00 GMT Received: from uk.radan.com (gppsun4 [172.16.15.99]) by sockeye.uk.radan.com (8.9.1b+Sun/8.9.1) with ESMTP id LAA23894 for ; Mon, 21 Feb 2000 11:25:58 GMT Message-ID: <38B120A2.7E104808@uk.radan.com> Date: Mon, 21 Feb 2000 11:25:22 +0000 From: Mark Ovens Reply-To: mark@dogma.freebsd-uk.eu.org, Mark Ovens Organization: Radan Computational Ltd X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 4.1.3_U1 sun4m) X-Accept-Language: en-GB MIME-Version: 1.0 To: questions@freebsd.org Subject: Running shell commands in Emacs Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is it possible to run a shell command from within emacs and have the output written to the current buffer at the cursor position, as the ex command ``r!'' in vi?, which is useful for adding the output of ``uname -a'' or ``dmesg'' into an e-mail, for instance. I know there is ``shell-command'' but that writes the output to a new buffer (*Shell Command Output*) so you then have to cut 'n' paste. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message