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

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

Re: shell-mode question


From: Peter Dyballa
Subject: Re: shell-mode question
Date: Thu, 2 Oct 2008 12:16:18 +0200


Am 02.10.2008 um 09:31 schrieb Stefan Thomas:

When I execute a shell-script, how can I display the output not in the
shell-buffer but in the buffer im working?

Maybe this way:

<shell interpreter> <path to your shell script> >> <path to your shell script>

or

        <path to your shell script> >> <path to your shell script>

which will add the script's output to the script's end. You might think of separating std-out and std-err. Now do M-x revert-buffer, and voilà: new contents (hopefully).

And: is it possible in shell-mode to add text not only at the end of line
but whenever I want to?


You can apply a change to the *shell* buffer or some other buffer in shell-script-mode whenever this buffer is not read-only. Then you can also apply a change wherever you want ...

--
Mit friedvollen Grüßen

  Pete

Some day we may discover how to make magnets that can point in any direction.







reply via email to

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