Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Silent (shell-command)

16 views
Skip to first unread message

Marcelo de Moraes Serpa

unread,
Aug 31, 2012, 7:10:38 PM8/31/12
to help-gn...@gnu.org
Hi list,

Is there a way to run a shell-command without emacs creating any kind of output buffer when it's completed? I've tried using "&" but the buffer just changes to "Async Output Buffer". I'd just like emacs to silently run the command in the background, preferably without blocking. Any ideas?

Thanks in advance,

- Marcelo.

Christopher Schmidt

unread,
Aug 31, 2012, 7:23:57 PM8/31/12
to help-gn...@gnu.org
Marcelo de Moraes Serpa <celo...@gmail.com> writes:
> Is there a way to run a shell-command without emacs creating any kind
> of output buffer when it's completed? I've tried using "&" but the
> buffer just changes to "Async Output Buffer". I'd just like emacs to
> silently run the command in the background, preferably without
> blocking. Any ideas?

(global-set-key [remap shell-command]
(lambda ()
(interactive)
(let ((display-buffer-overriding-action (cons (lambda (_1 _2) 'rms) nil)))

(call-interactively 'shell-command))))

Christopher

0 new messages