help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shell Command Output Always to Buffer


From: Michael Powe
Subject: Shell Command Output Always to Buffer
Date: Wed, 08 Dec 2010 15:28:30 -0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hello,

This is in reply to a message I lost track of in Gnus.

To always send a command output to a specified buffer.

(defun shell-command-with-buffer(cmd)
  (interactive "sCommand:")
  (shell-command cmd (set-buffer (get-buffer-create "*Shell Command Output*")) 
nil))

Thanks.

mp

-- 
Michael Powe            michael@trollope.org            Naugatuck CT USA


Is it time for your medication or mine?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]