aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2011-03-14 17:39:58 +0100
committerMichael Albinus2011-03-14 17:39:58 +0100
commite756ec02a4415f054cac4887a1b03ae4d7ed6ccb (patch)
tree283467f63378946f259a7457dab6194c4829182c
parent2aa46d6cce6773a0c56c93ca64750caea6ed3bba (diff)
downloademacs-e756ec02a4415f054cac4887a1b03ae4d7ed6ccb.tar.gz
emacs-e756ec02a4415f054cac4887a1b03ae4d7ed6ccb.zip
* tramp.texi (Remote processes): New subsection "Running shell on
a remote host".
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/tramp.texi29
2 files changed, 30 insertions, 4 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index db3a944c160..ecb6cceda91 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12011-03-14 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Remote processes): New subsection "Running shell on
4 a remote host".
5
12011-03-12 Teodor Zlatanov <tzz@lifelogs.com> 62011-03-12 Teodor Zlatanov <tzz@lifelogs.com>
2 7
3 * auth.texi (Help for developers): Update docs to explain that the 8 * auth.texi (Help for developers): Update docs to explain that the
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index bdbba437af7..e1c4a806de2 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -2540,7 +2540,28 @@ Another trick might be that you put @code{ForwardX11 yes} or
2540that host. 2540that host.
2541 2541
2542 2542
2543@subsection Running shell-command on a remote host 2543@subsection Running @code{shell} on a remote host
2544@cindex shell
2545
2546Calling @code{M-x shell} in a buffer related to a remote host runs the
2547local shell as defined in @option{shell-file-name}. This might be
2548also a valid path name for a shell to be applied on the remote host,
2549but it will fail at least when your local and remote hosts belong to
2550different system types, like @samp{windows-nt} and @samp{gnu/linux}.
2551
2552You must set the variable @option{explicit-shell-file-name} to the
2553shell path name on the remote host, in order to start that shell on
2554the remote host.
2555
2556@ifset emacs
2557Starting with Emacs 24 this won't be necessary, if you call
2558@code{shell} interactively. You will be asked for the remote shell
2559path, if you are on a remote buffer, and if
2560@option{explicit-shell-file-name} is equal to @code{nil}.
2561@end ifset
2562
2563
2564@subsection Running @code{shell-command} on a remote host
2544@cindex shell-command 2565@cindex shell-command
2545 2566
2546@code{shell-command} allows to execute commands in a shell, either 2567@code{shell-command} allows to execute commands in a shell, either
@@ -2556,13 +2577,13 @@ You will see the buffer @file{*Async Shell Command*}, containing the
2556continuous output of the @command{tail} command. 2577continuous output of the @command{tail} command.
2557 2578
2558 2579
2559@subsection Running eshell on a remote host 2580@subsection Running @code{eshell} on a remote host
2560@cindex eshell 2581@cindex eshell
2561 2582
2562@value{tramp} is integrated into @file{eshell.el}. That is, you can 2583@value{tramp} is integrated into @file{eshell.el}. That is, you can
2563open an interactive shell on your remote host, and run commands there. 2584open an interactive shell on your remote host, and run commands there.
2564After you have started @code{eshell}, you could perform commands like 2585After you have started @code{M-x eshell}, you could perform commands
2565this: 2586like this:
2566 2587
2567@example 2588@example
2568@b{~ $} cd @trampfn{sudo, , , /etc} @key{RET} 2589@b{~ $} cd @trampfn{sudo, , , /etc} @key{RET}