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

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

Re: Run terminal command with output in current buffer


From: Felix Dietrich
Subject: Re: Run terminal command with output in current buffer
Date: Fri, 16 Jul 2021 18:32:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

lisa-asket@perso.be writes:

> But when using `shell-command` I have to wait until the command is
> executed before it gets displayed in the buffer.  Can I make it print
> as it is executing ?

Reread the docstring of “shell-command”!  There you will find:

    “If COMMAND ends in ‘&’, execute it asynchronously.  The output
    appears in the buffer ‘*Async Shell Command*’.  That buffer is in
    shell mode.  You can also use ‘async-shell-command’ that
    automatically adds ‘&’.”

-- 
Felix Dietrich



reply via email to

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