diff options
| author | Michael Albinus | 2012-06-11 15:03:39 +0200 |
|---|---|---|
| committer | Michael Albinus | 2012-06-11 15:03:39 +0200 |
| commit | 888a7fc08d1b6b2daa7fd06a93821f7359ee166e (patch) | |
| tree | 01fcdd7dfed9f560a820f00d641213fd1edd691f /doc/misc | |
| parent | 2fe4b1254dc0673e161e7aee6ef6f983af86289b (diff) | |
| download | emacs-888a7fc08d1b6b2daa7fd06a93821f7359ee166e.tar.gz emacs-888a7fc08d1b6b2daa7fd06a93821f7359ee166e.zip | |
Sync with Tramp 2.2.6-pre.
* tramp.texi (all): Use consequently @command{}, @env{} and @kbd{}
where appropriate.
(Ad-hoc multi-hops): New section.
(Remote processes): New subsection "Running remote processes on
Windows hosts".
(History): Add remote commands on Windows, and ad-hoc multi-hop methods.
(External methods): "ControlPersist" must be set to "no" for the
`scpc' method.
(Remote processes): Add a note about `auto-revert-tail-mode'.
(Frequently Asked Questions): Use "scpx" in combination with
"ControlPersist". Reported by Adam Spiers <emacs@adamspiers.org>.
* trampver.texi: Update release number.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/ChangeLog | 19 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 170 | ||||
| -rw-r--r-- | doc/misc/trampver.texi | 2 |
3 files changed, 155 insertions, 36 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 9f9717aab29..37ad89dfacb 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2012-06-11 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | Sync with Tramp 2.2.6-pre. | ||
| 4 | |||
| 5 | * tramp.texi (all): Use consequently @command{}, @env{} and @kbd{} | ||
| 6 | where appropriate. | ||
| 7 | (Ad-hoc multi-hops): New section. | ||
| 8 | (Remote processes): New subsection "Running remote processes on | ||
| 9 | Windows hosts". | ||
| 10 | (History): Add remote commands on Windows, and ad-hoc multi-hop | ||
| 11 | methods. | ||
| 12 | (External methods): "ControlPersist" must be set to "no" for the | ||
| 13 | `scpc' method. | ||
| 14 | (Remote processes): Add a note about `auto-revert-tail-mode'. | ||
| 15 | (Frequently Asked Questions): Use "scpx" in combination with | ||
| 16 | "ControlPersist". Reported by Adam Spiers <emacs@adamspiers.org>. | ||
| 17 | |||
| 18 | * trampver.texi: Update release number. | ||
| 19 | |||
| 1 | 2012-06-10 Chong Yidong <cyd@gnu.org> | 20 | 2012-06-10 Chong Yidong <cyd@gnu.org> |
| 2 | 21 | ||
| 3 | * sc.texi: Remove bogus @ifinfo commands which prevent makeinfo | 22 | * sc.texi: Remove bogus @ifinfo commands which prevent makeinfo |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 7fbd11decd7..69f0c6d8880 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -197,6 +197,7 @@ Using @value{tramp} | |||
| 197 | * Filename Syntax:: @value{tramp} filename conventions. | 197 | * Filename Syntax:: @value{tramp} filename conventions. |
| 198 | * Alternative Syntax:: URL-like filename syntax. | 198 | * Alternative Syntax:: URL-like filename syntax. |
| 199 | * Filename completion:: Filename completion. | 199 | * Filename completion:: Filename completion. |
| 200 | * Ad-hoc multi-hops:: Declaring multiple hops in the file name. | ||
| 200 | * Remote processes:: Integration with other @value{emacsname} packages. | 201 | * Remote processes:: Integration with other @value{emacsname} packages. |
| 201 | * Cleanup remote connections:: Cleanup remote connections. | 202 | * Cleanup remote connections:: Cleanup remote connections. |
| 202 | 203 | ||
| @@ -442,6 +443,11 @@ Support of gateways exists since April 2007. | |||
| 442 | @ifset emacsgvfs | 443 | @ifset emacsgvfs |
| 443 | GVFS integration started in February 2009. | 444 | GVFS integration started in February 2009. |
| 444 | @end ifset | 445 | @end ifset |
| 446 | @ifset emacs | ||
| 447 | Remote commands on Windows hosts are available since September 2011. | ||
| 448 | @end ifset | ||
| 449 | Ad-hoc multi-hop methods (with a changed syntax) have been reenabled | ||
| 450 | in November 2011. | ||
| 445 | 451 | ||
| 446 | In December 2001, @value{tramp} has been added to the XEmacs package | 452 | In December 2001, @value{tramp} has been added to the XEmacs package |
| 447 | repository. Being part of the Emacs repository happened in June 2002, | 453 | repository. Being part of the Emacs repository happened in June 2002, |
| @@ -510,7 +516,7 @@ Method}. | |||
| 510 | 516 | ||
| 511 | 517 | ||
| 512 | @node Connection types | 518 | @node Connection types |
| 513 | @section Types of connections made to remote machines. | 519 | @section Types of connections made to remote machines |
| 514 | @cindex connection types, overview | 520 | @cindex connection types, overview |
| 515 | 521 | ||
| 516 | There are two basic types of transfer methods, each with its own | 522 | There are two basic types of transfer methods, each with its own |
| @@ -880,7 +886,9 @@ if it fails like | |||
| 880 | command-line: line 0: Bad configuration option: ControlMaster | 886 | command-line: line 0: Bad configuration option: ControlMaster |
| 881 | @end example | 887 | @end example |
| 882 | 888 | ||
| 883 | then you cannot use it. | 889 | then you cannot use it. Note, that the option |
| 890 | @option{ControlPersist}, if it is supported by your @option{ssh} | ||
| 891 | version, must be set to @option{no}. | ||
| 884 | 892 | ||
| 885 | This method supports the @samp{-p} argument. | 893 | This method supports the @samp{-p} argument. |
| 886 | 894 | ||
| @@ -976,8 +984,8 @@ This is another not natural @value{tramp} method. It uses the | |||
| 976 | @command{smbclient} command on different Unices in order to connect to | 984 | @command{smbclient} command on different Unices in order to connect to |
| 977 | an SMB server. An SMB server might be a Samba (or CIFS) server on | 985 | an SMB server. An SMB server might be a Samba (or CIFS) server on |
| 978 | another UNIX host or, more interesting, a host running MS Windows. So | 986 | another UNIX host or, more interesting, a host running MS Windows. So |
| 979 | far, it is tested against MS Windows NT, MS Windows 2000, and MS | 987 | far, it is tested against MS Windows NT, MS Windows 2000, MS Windows |
| 980 | Windows XP. | 988 | XP, MS Windows Vista, and MS Windows 7. |
| 981 | 989 | ||
| 982 | The first directory in the localname must be a share name on the remote | 990 | The first directory in the localname must be a share name on the remote |
| 983 | host. Remember that the @code{$} character, in which default shares | 991 | host. Remember that the @code{$} character, in which default shares |
| @@ -1259,8 +1267,8 @@ See the documentation for the variable | |||
| 1259 | 1267 | ||
| 1260 | One trap to fall in must be known. If @value{tramp} finds a default | 1268 | One trap to fall in must be known. If @value{tramp} finds a default |
| 1261 | user, this user will be passed always to the connection command as | 1269 | user, this user will be passed always to the connection command as |
| 1262 | parameter (for example @samp{ssh here.somewhere.else -l john}. If you | 1270 | parameter (for example @command{ssh here.somewhere.else -l john}. If |
| 1263 | have specified another user for your command in its configuration | 1271 | you have specified another user for your command in its configuration |
| 1264 | files, @value{tramp} cannot know it, and the remote access will fail. | 1272 | files, @value{tramp} cannot know it, and the remote access will fail. |
| 1265 | If you have specified in the given example in @file{~/.ssh/config} the | 1273 | If you have specified in the given example in @file{~/.ssh/config} the |
| 1266 | lines | 1274 | lines |
| @@ -1398,8 +1406,8 @@ host, wouldn't be useful here. | |||
| 1398 | @var{host}, @var{user} and @var{proxy} can also be Lisp forms. These | 1406 | @var{host}, @var{user} and @var{proxy} can also be Lisp forms. These |
| 1399 | forms are evaluated, and must return a string, or @code{nil}. The | 1407 | forms are evaluated, and must return a string, or @code{nil}. The |
| 1400 | previous example could be generalized then: For all hosts except my | 1408 | previous example could be generalized then: For all hosts except my |
| 1401 | local one connect via @code{ssh} first, and apply @code{sudo -u root} | 1409 | local one connect via @command{ssh} first, and apply @command{sudo -u |
| 1402 | afterwards: | 1410 | root} afterwards: |
| 1403 | 1411 | ||
| 1404 | @lisp | 1412 | @lisp |
| 1405 | (add-to-list 'tramp-default-proxies-alist | 1413 | (add-to-list 'tramp-default-proxies-alist |
| @@ -1571,7 +1579,7 @@ Example: | |||
| 1571 | 1579 | ||
| 1572 | 1580 | ||
| 1573 | @node Password handling | 1581 | @node Password handling |
| 1574 | @section Reusing passwords for several connections. | 1582 | @section Reusing passwords for several connections |
| 1575 | @cindex passwords | 1583 | @cindex passwords |
| 1576 | 1584 | ||
| 1577 | Sometimes it is necessary to connect to the same remote host several | 1585 | Sometimes it is necessary to connect to the same remote host several |
| @@ -1645,7 +1653,7 @@ parameters}. | |||
| 1645 | 1653 | ||
| 1646 | 1654 | ||
| 1647 | @node Connection caching | 1655 | @node Connection caching |
| 1648 | @section Reusing connection related information. | 1656 | @section Reusing connection related information |
| 1649 | @cindex caching | 1657 | @cindex caching |
| 1650 | 1658 | ||
| 1651 | @vindex tramp-persistency-file-name | 1659 | @vindex tramp-persistency-file-name |
| @@ -1690,7 +1698,7 @@ connection again. | |||
| 1690 | 1698 | ||
| 1691 | 1699 | ||
| 1692 | @node Remote Programs | 1700 | @node Remote Programs |
| 1693 | @section How @value{tramp} finds and uses programs on the remote machine. | 1701 | @section How @value{tramp} finds and uses programs on the remote machine |
| 1694 | 1702 | ||
| 1695 | @value{tramp} depends on a number of programs on the remote host in order to | 1703 | @value{tramp} depends on a number of programs on the remote host in order to |
| 1696 | function, including @command{ls}, @command{test}, @command{find} and | 1704 | function, including @command{ls}, @command{test}, @command{find} and |
| @@ -1867,7 +1875,7 @@ Maybe some shells ask other questions when they are started. | |||
| 1867 | @value{tramp} does not know how to answer these questions. There are | 1875 | @value{tramp} does not know how to answer these questions. There are |
| 1868 | two approaches for dealing with this problem. One approach is to take | 1876 | two approaches for dealing with this problem. One approach is to take |
| 1869 | care that the shell does not ask any questions when invoked from | 1877 | care that the shell does not ask any questions when invoked from |
| 1870 | @value{tramp}. You can do this by checking the @code{TERM} | 1878 | @value{tramp}. You can do this by checking the @env{TERM} |
| 1871 | environment variable, it will be set to @code{dumb} when connecting. | 1879 | environment variable, it will be set to @code{dumb} when connecting. |
| 1872 | 1880 | ||
| 1873 | @vindex tramp-terminal-type | 1881 | @vindex tramp-terminal-type |
| @@ -1898,9 +1906,9 @@ the variable @code{tramp-actions-before-shell}. Example: | |||
| 1898 | 1906 | ||
| 1899 | @item Environment variables named like users in @file{.profile} | 1907 | @item Environment variables named like users in @file{.profile} |
| 1900 | 1908 | ||
| 1901 | If you have a user named frumple and set the variable @code{FRUMPLE} in | 1909 | If you have a user named frumple and set the variable @env{FRUMPLE} in |
| 1902 | your shell environment, then this might cause trouble. Maybe rename | 1910 | your shell environment, then this might cause trouble. Maybe rename |
| 1903 | the variable to @code{FRUMPLE_DIR} or the like. | 1911 | the variable to @env{FRUMPLE_DIR} or the like. |
| 1904 | 1912 | ||
| 1905 | This weird effect was actually reported by a @value{tramp} user! | 1913 | This weird effect was actually reported by a @value{tramp} user! |
| 1906 | 1914 | ||
| @@ -1925,7 +1933,7 @@ understand this syntax and will emit a syntax error when it reaches | |||
| 1925 | this line. | 1933 | this line. |
| 1926 | 1934 | ||
| 1927 | Another example is the tilde (@code{~}) character, say when adding | 1935 | Another example is the tilde (@code{~}) character, say when adding |
| 1928 | @file{~/bin} to @code{PATH}. Many Bourne shells will not expand this | 1936 | @file{~/bin} to @env{PATH}. Many Bourne shells will not expand this |
| 1929 | character, and since there is usually no directory whose name consists | 1937 | character, and since there is usually no directory whose name consists |
| 1930 | of the single character tilde, strange things will happen. | 1938 | of the single character tilde, strange things will happen. |
| 1931 | 1939 | ||
| @@ -1960,10 +1968,10 @@ output robustly. When calling an interactive shell by @kbd{M-x | |||
| 1960 | shell}, this doesn't look nice. | 1968 | shell}, this doesn't look nice. |
| 1961 | 1969 | ||
| 1962 | You can redefine the shell prompt by checking the environment variable | 1970 | You can redefine the shell prompt by checking the environment variable |
| 1963 | @code{INSIDE_EMACS}, which is set by @value{tramp}, in your startup | 1971 | @env{INSIDE_EMACS}, which is set by @value{tramp}, in your startup |
| 1964 | script @file{~/.emacs_SHELLNAME}. @code{SHELLNAME} might be the string | 1972 | script @file{~/.emacs_SHELLNAME}. @env{SHELLNAME} might be the string |
| 1965 | @code{bash} or similar, in case of doubt you could set it the | 1973 | @code{bash} or similar, in case of doubt you could set it the |
| 1966 | environment variable @code{ESHELL} in your @file{.emacs}: | 1974 | environment variable @env{ESHELL} in your @file{.emacs}: |
| 1967 | 1975 | ||
| 1968 | @lisp | 1976 | @lisp |
| 1969 | (setenv "ESHELL" "bash") | 1977 | (setenv "ESHELL" "bash") |
| @@ -2177,7 +2185,7 @@ If you want to use either @option{ssh} based method on Windows, then | |||
| 2177 | you might encounter problems with @command{ssh-agent}. Using this | 2185 | you might encounter problems with @command{ssh-agent}. Using this |
| 2178 | program, you can avoid typing the pass-phrase every time you log in. | 2186 | program, you can avoid typing the pass-phrase every time you log in. |
| 2179 | However, if you start @value{emacsname} from a desktop shortcut, then | 2187 | However, if you start @value{emacsname} from a desktop shortcut, then |
| 2180 | the environment variable @code{SSH_AUTH_SOCK} is not set and so | 2188 | the environment variable @env{SSH_AUTH_SOCK} is not set and so |
| 2181 | @value{emacsname} and thus @value{tramp} and thus @command{ssh} and | 2189 | @value{emacsname} and thus @value{tramp} and thus @command{ssh} and |
| 2182 | @command{scp} started from @value{tramp} cannot communicate with | 2190 | @command{scp} started from @value{tramp} cannot communicate with |
| 2183 | @command{ssh-agent}. It works better to start @value{emacsname} from | 2191 | @command{ssh-agent}. It works better to start @value{emacsname} from |
| @@ -2215,6 +2223,7 @@ minute you have already forgotten that you hit that key! | |||
| 2215 | * Filename Syntax:: @value{tramp} filename conventions. | 2223 | * Filename Syntax:: @value{tramp} filename conventions. |
| 2216 | * Alternative Syntax:: URL-like filename syntax. | 2224 | * Alternative Syntax:: URL-like filename syntax. |
| 2217 | * Filename completion:: Filename completion. | 2225 | * Filename completion:: Filename completion. |
| 2226 | * Ad-hoc multi-hops:: Declaring multiple hops in the file name. | ||
| 2218 | * Remote processes:: Integration with other @value{emacsname} packages. | 2227 | * Remote processes:: Integration with other @value{emacsname} packages. |
| 2219 | * Cleanup remote connections:: Cleanup remote connections. | 2228 | * Cleanup remote connections:: Cleanup remote connections. |
| 2220 | @end menu | 2229 | @end menu |
| @@ -2455,16 +2464,56 @@ always cached values for the directory contents. | |||
| 2455 | @end defopt | 2464 | @end defopt |
| 2456 | 2465 | ||
| 2457 | 2466 | ||
| 2467 | @node Ad-hoc multi-hops | ||
| 2468 | @section Declaring multiple hops in the file name | ||
| 2469 | @cindex multi-hop, ad-hoc | ||
| 2470 | @cindex proxy hosts, ad-hoc | ||
| 2471 | |||
| 2472 | Multiple hops are configured with the variable | ||
| 2473 | @code{tramp-default-proxies-alist} (@pxref{Multi-hops}). However, | ||
| 2474 | sometimes it is desirable to reach a remote host immediately, without | ||
| 2475 | configuration changes. This can be reached by an ad-hoc specification | ||
| 2476 | of the proxies. | ||
| 2477 | |||
| 2478 | A proxy looks like a remote file name specification without the local | ||
| 2479 | file name part. It is prepended to the target remote file name, | ||
| 2480 | separated by @samp{|}. As an example, a remote file on | ||
| 2481 | @samp{you@@remotehost}, passing the proxy @samp{bird@@bastion}, could | ||
| 2482 | be opened by | ||
| 2483 | |||
| 2484 | @example | ||
| 2485 | @c @kbd{C-x C-f @trampfn{ssh@value{postfixhop}bird@@bastion|ssh, you, | ||
| 2486 | @c remotehost, /path}} | ||
| 2487 | @kbd{C-x C-f @value{prefix}ssh@value{postfixhop}bird@@bastion|ssh@value{postfixhop}you@@remotehost@value{postfix}/path} | ||
| 2488 | @end example | ||
| 2489 | |||
| 2490 | Multiple hops can be cascaded, separating all proxies by @samp{|}. | ||
| 2491 | The proxies can also contain the patterns @code{%h} or @code{%u}. | ||
| 2492 | |||
| 2493 | The ad-hoc definition is added on the fly to | ||
| 2494 | @code{tramp-default-proxies-alist}. Therefore, during the lifetime of | ||
| 2495 | the @value{emacsname} session it is not necessary to enter this ad-hoc | ||
| 2496 | specification, again. The remote file name @samp{@trampfn{ssh, you, | ||
| 2497 | remotehost, /path}} would be sufficient from now on. | ||
| 2498 | |||
| 2499 | @vindex tramp-save-ad-hoc-proxies | ||
| 2500 | @defopt tramp-save-ad-hoc-proxies | ||
| 2501 | This customer option controls whether ad-hoc definitions are kept | ||
| 2502 | persistently in @code{tramp-default-proxies-alist}. That means, those | ||
| 2503 | definitions are available also for future @value{emacsname} sessions. | ||
| 2504 | @end defopt | ||
| 2505 | |||
| 2506 | |||
| 2458 | @node Remote processes | 2507 | @node Remote processes |
| 2459 | @section Integration with other @value{emacsname} packages. | 2508 | @section Integration with other @value{emacsname} packages |
| 2460 | @cindex compile | 2509 | @cindex compile |
| 2461 | @cindex recompile | 2510 | @cindex recompile |
| 2462 | 2511 | ||
| 2463 | @value{tramp} supports running processes on a remote host. This | 2512 | @value{tramp} supports running processes on a remote host. This |
| 2464 | allows to exploit @value{emacsname} packages without modification for | 2513 | allows to exploit @value{emacsname} packages without modification for |
| 2465 | remote file names. It does not work for the @option{ftp} and | 2514 | remote file names. It does not work for the @option{ftp} method. |
| 2466 | @option{smb} methods. Association of a pty, as specified in | 2515 | Association of a pty, as specified in @code{start-file-process}, is |
| 2467 | @code{start-file-process}, is not supported. | 2516 | not supported. |
| 2468 | 2517 | ||
| 2469 | @code{process-file} and @code{start-file-process} work on the remote | 2518 | @code{process-file} and @code{start-file-process} work on the remote |
| 2470 | host when the variable @code{default-directory} is remote: | 2519 | host when the variable @code{default-directory} is remote: |
| @@ -2503,9 +2552,9 @@ Programs}): | |||
| 2503 | The environment for your program can be adapted by customizing | 2552 | The environment for your program can be adapted by customizing |
| 2504 | @code{tramp-remote-process-environment}. This variable is a list of | 2553 | @code{tramp-remote-process-environment}. This variable is a list of |
| 2505 | strings. It is structured like @code{process-environment}. Each | 2554 | strings. It is structured like @code{process-environment}. Each |
| 2506 | element is a string of the form ENVVARNAME=VALUE. An entry | 2555 | element is a string of the form @code{"ENVVARNAME=VALUE"}. An entry |
| 2507 | ENVVARNAME= disables the corresponding environment variable, which | 2556 | @code{"ENVVARNAME="} disables the corresponding environment variable, |
| 2508 | might have been set in your init file like @file{~/.profile}. | 2557 | which might have been set in your init file like @file{~/.profile}. |
| 2509 | 2558 | ||
| 2510 | @noindent | 2559 | @noindent |
| 2511 | Adding an entry can be performed via @code{add-to-list}: | 2560 | Adding an entry can be performed via @code{add-to-list}: |
| @@ -2517,7 +2566,7 @@ Adding an entry can be performed via @code{add-to-list}: | |||
| 2517 | Changing or removing an existing entry is not encouraged. The default | 2566 | Changing or removing an existing entry is not encouraged. The default |
| 2518 | values are chosen for proper @value{tramp} work. Nevertheless, if for | 2567 | values are chosen for proper @value{tramp} work. Nevertheless, if for |
| 2519 | example a paranoid system administrator disallows changing the | 2568 | example a paranoid system administrator disallows changing the |
| 2520 | @code{HISTORY} environment variable, you can customize | 2569 | @env{HISTORY} environment variable, you can customize |
| 2521 | @code{tramp-remote-process-environment}, or you can apply the | 2570 | @code{tramp-remote-process-environment}, or you can apply the |
| 2522 | following code in your @file{.emacs}: | 2571 | following code in your @file{.emacs}: |
| 2523 | 2572 | ||
| @@ -2536,7 +2585,7 @@ integrate them as well. @xref{Bug Reports}. | |||
| 2536 | 2585 | ||
| 2537 | If you want to run a remote program, which shall connect the X11 | 2586 | If you want to run a remote program, which shall connect the X11 |
| 2538 | server you are using with your local host, you can set the | 2587 | server you are using with your local host, you can set the |
| 2539 | @code{DISPLAY} environment variable on the remote host: | 2588 | @env{DISPLAY} environment variable on the remote host: |
| 2540 | 2589 | ||
| 2541 | @lisp | 2590 | @lisp |
| 2542 | (add-to-list 'tramp-remote-process-environment | 2591 | (add-to-list 'tramp-remote-process-environment |
| @@ -2557,7 +2606,7 @@ that host. | |||
| 2557 | @subsection Running @code{shell} on a remote host | 2606 | @subsection Running @code{shell} on a remote host |
| 2558 | @cindex shell | 2607 | @cindex shell |
| 2559 | 2608 | ||
| 2560 | Calling @code{M-x shell} in a buffer related to a remote host runs the | 2609 | Calling @kbd{M-x shell} in a buffer related to a remote host runs the |
| 2561 | local shell as defined in @option{shell-file-name}. This might be | 2610 | local shell as defined in @option{shell-file-name}. This might be |
| 2562 | also a valid path name for a shell to be applied on the remote host, | 2611 | also a valid path name for a shell to be applied on the remote host, |
| 2563 | but it will fail at least when your local and remote hosts belong to | 2612 | but it will fail at least when your local and remote hosts belong to |
| @@ -2590,13 +2639,18 @@ hosts. Example: | |||
| 2590 | You will see the buffer @file{*Async Shell Command*}, containing the | 2639 | You will see the buffer @file{*Async Shell Command*}, containing the |
| 2591 | continuous output of the @command{tail} command. | 2640 | continuous output of the @command{tail} command. |
| 2592 | 2641 | ||
| 2642 | @ifset emacs | ||
| 2643 | A similar behaviour can be reached by @kbd{M-x auto-revert-tail-mode}, | ||
| 2644 | if available. | ||
| 2645 | @end ifset | ||
| 2646 | |||
| 2593 | 2647 | ||
| 2594 | @subsection Running @code{eshell} on a remote host | 2648 | @subsection Running @code{eshell} on a remote host |
| 2595 | @cindex eshell | 2649 | @cindex eshell |
| 2596 | 2650 | ||
| 2597 | @value{tramp} is integrated into @file{eshell.el}. That is, you can | 2651 | @value{tramp} is integrated into @file{eshell.el}. That is, you can |
| 2598 | open an interactive shell on your remote host, and run commands there. | 2652 | open an interactive shell on your remote host, and run commands there. |
| 2599 | After you have started @code{M-x eshell}, you could perform commands | 2653 | After you have started @kbd{M-x eshell}, you could perform commands |
| 2600 | like this: | 2654 | like this: |
| 2601 | 2655 | ||
| 2602 | @example | 2656 | @example |
| @@ -2672,8 +2726,40 @@ means, file names as arguments must be given as ordinary relative or | |||
| 2672 | absolute file names, without any remote specification. | 2726 | absolute file names, without any remote specification. |
| 2673 | 2727 | ||
| 2674 | 2728 | ||
| 2729 | @subsection Running remote processes on Windows hosts | ||
| 2730 | @cindex winexe | ||
| 2731 | @cindex powershell | ||
| 2732 | |||
| 2733 | With the help of the @command{winexe} it is possible tu run processes | ||
| 2734 | on a remote Windows host. @value{tramp} has implemented this for | ||
| 2735 | @code{process-file} and @code{start-file-process}. | ||
| 2736 | |||
| 2737 | The variable @code{tramp-smb-winexe-program} must contain the file | ||
| 2738 | name of your local @command{winexe} command. On the remote host, | ||
| 2739 | Powershell V2.0 must be installed; it is used to run the remote | ||
| 2740 | process. | ||
| 2741 | |||
| 2742 | In order to open a remote shell on the Windows host via @kbd{M-x | ||
| 2743 | shell}, you must set the variables @option{explicit-shell-file-name} | ||
| 2744 | and @option{explicit-*-args}. If you want, for example, run | ||
| 2745 | @command{cmd}, you must set: | ||
| 2746 | |||
| 2747 | @lisp | ||
| 2748 | (setq explicit-shell-file-name "cmd" | ||
| 2749 | explicit-cmd-args '("/q")) | ||
| 2750 | @end lisp | ||
| 2751 | |||
| 2752 | @noindent | ||
| 2753 | In case of running @command{powershell} as remote shell, the settings are | ||
| 2754 | |||
| 2755 | @lisp | ||
| 2756 | (setq explicit-shell-file-name "powershell" | ||
| 2757 | explicit-powershell-args '("-file" "-")) | ||
| 2758 | @end lisp | ||
| 2759 | |||
| 2760 | |||
| 2675 | @node Cleanup remote connections | 2761 | @node Cleanup remote connections |
| 2676 | @section Cleanup remote connections. | 2762 | @section Cleanup remote connections |
| 2677 | @cindex cleanup | 2763 | @cindex cleanup |
| 2678 | 2764 | ||
| 2679 | Sometimes it is useful to cleanup remote connections. The following | 2765 | Sometimes it is useful to cleanup remote connections. The following |
| @@ -2869,7 +2955,7 @@ Echoed characters after login | |||
| 2869 | 2955 | ||
| 2870 | When the remote machine opens an echoing shell, there might be control | 2956 | When the remote machine opens an echoing shell, there might be control |
| 2871 | characters in the welcome message. @value{tramp} tries to suppress | 2957 | characters in the welcome message. @value{tramp} tries to suppress |
| 2872 | such echoes via the @code{stty -echo} command, but sometimes this | 2958 | such echoes via the @command{stty -echo} command, but sometimes this |
| 2873 | command is not reached, because the echoed output has confused | 2959 | command is not reached, because the echoed output has confused |
| 2874 | @value{tramp} already. In such situations it might be helpful to use | 2960 | @value{tramp} already. In such situations it might be helpful to use |
| 2875 | the @option{sshx} or @option{scpx} methods, which allocate a pseudo tty. | 2961 | the @option{sshx} or @option{scpx} methods, which allocate a pseudo tty. |
| @@ -2924,6 +3010,20 @@ Host * | |||
| 2924 | 3010 | ||
| 2925 | 3011 | ||
| 2926 | @item | 3012 | @item |
| 3013 | How can I use @samp{ControlPersist}? | ||
| 3014 | |||
| 3015 | When @samp{ControlPersist} is set to @samp{yes}, the @option{scpc} | ||
| 3016 | method does not work. You can use @option{scpx} instead with the | ||
| 3017 | following settings in @file{~/.ssh/config}: | ||
| 3018 | |||
| 3019 | @example | ||
| 3020 | Host * | ||
| 3021 | ControlMaster auto | ||
| 3022 | ControlPersist yes | ||
| 3023 | @end example | ||
| 3024 | |||
| 3025 | |||
| 3026 | @item | ||
| 2927 | File name completion does not work with @value{tramp} | 3027 | File name completion does not work with @value{tramp} |
| 2928 | 3028 | ||
| 2929 | When you log in to the remote machine, do you see the output of | 3029 | When you log in to the remote machine, do you see the output of |
| @@ -3385,7 +3485,7 @@ could write a script @file{emacsclient.sh}: | |||
| 3385 | emacsclient @trampfn{ssh, $(whoami), $(hostname --fqdn), $1} | 3485 | emacsclient @trampfn{ssh, $(whoami), $(hostname --fqdn), $1} |
| 3386 | @end example | 3486 | @end example |
| 3387 | 3487 | ||
| 3388 | Then you must set the environment variable @code{EDITOR} pointing to | 3488 | Then you must set the environment variable @env{EDITOR} pointing to |
| 3389 | that script: | 3489 | that script: |
| 3390 | 3490 | ||
| 3391 | @example | 3491 | @example |
| @@ -3477,7 +3577,7 @@ This resets also the @value{ftppackagename} plugins. | |||
| 3477 | 3577 | ||
| 3478 | 3578 | ||
| 3479 | @node Localname deconstruction | 3579 | @node Localname deconstruction |
| 3480 | @section Breaking a localname into its components. | 3580 | @section Breaking a localname into its components |
| 3481 | 3581 | ||
| 3482 | @value{tramp} file names are somewhat different, obviously, to ordinary file | 3582 | @value{tramp} file names are somewhat different, obviously, to ordinary file |
| 3483 | names. As such, the lisp functions @code{file-name-directory} and | 3583 | names. As such, the lisp functions @code{file-name-directory} and |
| @@ -3494,7 +3594,7 @@ effect while preserving the @value{tramp} file name information. | |||
| 3494 | 3594 | ||
| 3495 | @ifset emacs | 3595 | @ifset emacs |
| 3496 | @node External packages | 3596 | @node External packages |
| 3497 | @section Integration with external Lisp packages. | 3597 | @section Integration with external Lisp packages |
| 3498 | @subsection Filename completion. | 3598 | @subsection Filename completion. |
| 3499 | 3599 | ||
| 3500 | While reading filenames in the minibuffer, @value{tramp} must decide | 3600 | While reading filenames in the minibuffer, @value{tramp} must decide |
diff --git a/doc/misc/trampver.texi b/doc/misc/trampver.texi index b4fb5f9aa6a..78bd9d0965f 100644 --- a/doc/misc/trampver.texi +++ b/doc/misc/trampver.texi | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | @c In the Tramp CVS, the version number is auto-frobbed from | 8 | @c In the Tramp CVS, the version number is auto-frobbed from |
| 9 | @c configure.ac, so you should edit that file and run | 9 | @c configure.ac, so you should edit that file and run |
| 10 | @c "autoconf && ./configure" to change the version number. | 10 | @c "autoconf && ./configure" to change the version number. |
| 11 | @set trampver 2.2.3-24.1 | 11 | @set trampver 2.2.6-pre |
| 12 | 12 | ||
| 13 | @c Other flags from configuration | 13 | @c Other flags from configuration |
| 14 | @set instprefix /usr/local | 14 | @set instprefix /usr/local |