diff options
| author | Michael Albinus | 2011-03-14 17:39:58 +0100 |
|---|---|---|
| committer | Michael Albinus | 2011-03-14 17:39:58 +0100 |
| commit | e756ec02a4415f054cac4887a1b03ae4d7ed6ccb (patch) | |
| tree | 283467f63378946f259a7457dab6194c4829182c | |
| parent | 2aa46d6cce6773a0c56c93ca64750caea6ed3bba (diff) | |
| download | emacs-e756ec02a4415f054cac4887a1b03ae4d7ed6ccb.tar.gz emacs-e756ec02a4415f054cac4887a1b03ae4d7ed6ccb.zip | |
* tramp.texi (Remote processes): New subsection "Running shell on
a remote host".
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 29 |
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 @@ | |||
| 1 | 2011-03-14 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * tramp.texi (Remote processes): New subsection "Running shell on | ||
| 4 | a remote host". | ||
| 5 | |||
| 1 | 2011-03-12 Teodor Zlatanov <tzz@lifelogs.com> | 6 | 2011-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 | |||
| 2540 | that host. | 2540 | that 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 | |||
| 2546 | Calling @code{M-x shell} in a buffer related to a remote host runs the | ||
| 2547 | local shell as defined in @option{shell-file-name}. This might be | ||
| 2548 | also a valid path name for a shell to be applied on the remote host, | ||
| 2549 | but it will fail at least when your local and remote hosts belong to | ||
| 2550 | different system types, like @samp{windows-nt} and @samp{gnu/linux}. | ||
| 2551 | |||
| 2552 | You must set the variable @option{explicit-shell-file-name} to the | ||
| 2553 | shell path name on the remote host, in order to start that shell on | ||
| 2554 | the remote host. | ||
| 2555 | |||
| 2556 | @ifset emacs | ||
| 2557 | Starting with Emacs 24 this won't be necessary, if you call | ||
| 2558 | @code{shell} interactively. You will be asked for the remote shell | ||
| 2559 | path, 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 | |||
| 2556 | continuous output of the @command{tail} command. | 2577 | continuous 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 |
| 2563 | open an interactive shell on your remote host, and run commands there. | 2584 | open an interactive shell on your remote host, and run commands there. |
| 2564 | After you have started @code{eshell}, you could perform commands like | 2585 | After you have started @code{M-x eshell}, you could perform commands |
| 2565 | this: | 2586 | like this: |
| 2566 | 2587 | ||
| 2567 | @example | 2588 | @example |
| 2568 | @b{~ $} cd @trampfn{sudo, , , /etc} @key{RET} | 2589 | @b{~ $} cd @trampfn{sudo, , , /etc} @key{RET} |