comparison man/tramp.texi @ 91015:b83d0dadb2a7

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 857-865) - Update from CVS - Merge from emacs--rel--22 - Update from CVS: lisp/emacs-lisp/avl-tree.el: New file. - Remove RCS keywords * emacs--rel--22 (patch 97-100) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 246-247) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-252
author Miles Bader <miles@gnu.org>
date Wed, 29 Aug 2007 05:03:40 +0000
parents 539530fa389c e6c6021c376b
children
comparison
equal deleted inserted replaced
91014:2392e6a45952 91015:b83d0dadb2a7
1626 1626
1627 It is possible, however, that your local (or remote ;) system 1627 It is possible, however, that your local (or remote ;) system
1628 administrator has put the tools you want in some obscure local 1628 administrator has put the tools you want in some obscure local
1629 directory. 1629 directory.
1630 1630
1631 In this case, you can still use them with @value{tramp}. You simply need to 1631 In this case, you can still use them with @value{tramp}. You simply
1632 add code to your @file{.emacs} to add the directory to the remote path. 1632 need to add code to your @file{.emacs} to add the directory to the
1633 This will then be searched by @value{tramp} when you connect and the software 1633 remote path. This will then be searched by @value{tramp} when you
1634 found. 1634 connect and the software found.
1635 1635
1636 To add a directory to the remote search path, you could use code such 1636 To add a directory to the remote search path, you could use code such
1637 as: 1637 as:
1638 1638
1639 @lisp 1639 @lisp
1640 @i{;; We load @value{tramp} to define the variable.} 1640 @i{;; We load @value{tramp} to define the variable.}
1641 (require 'tramp) 1641 (require 'tramp)
1642 @i{;; We have @command{perl} in "/usr/local/perl/bin"} 1642 @i{;; We have @command{perl} in "/usr/local/perl/bin"}
1643 (add-to-list 'tramp-remote-path "/usr/local/perl/bin") 1643 (add-to-list 'tramp-remote-path "/usr/local/perl/bin")
1644 @end lisp 1644 @end lisp
1645
1646 @value{tramp} caches several information, like the Perl binary
1647 location. The changed remote search path wouldn't affect these
1648 settings. In order to force @value{tramp} to recompute these values,
1649 you must exit @value{emacsname}, remove your persistency file
1650 (@pxref{Connection caching}), and restart @value{emacsname}.
1645 1651
1646 1652
1647 @node Remote shell setup 1653 @node Remote shell setup
1648 @comment node-name, next, previous, up 1654 @comment node-name, next, previous, up
1649 @section Remote shell setup hints 1655 @section Remote shell setup hints
2028 @section @value{tramp} filename conventions 2034 @section @value{tramp} filename conventions
2029 @cindex filename syntax 2035 @cindex filename syntax
2030 @cindex filename examples 2036 @cindex filename examples
2031 2037
2032 To access the file @var{localname} on the remote machine @var{machine} 2038 To access the file @var{localname} on the remote machine @var{machine}
2033 you would specify the filename @file{@trampfn{, , @var{machine}, 2039 you would specify the filename @file{@trampfn{, , machine,
2034 @var{localname}}}. This will connect to @var{machine} and transfer 2040 localname}}. This will connect to @var{machine} and transfer the file
2035 the file using the default method. @xref{Default Method}. 2041 using the default method. @xref{Default Method}.
2036 2042
2037 Some examples of @value{tramp} filenames are shown below. 2043 Some examples of @value{tramp} filenames are shown below.
2038 2044
2039 @table @file 2045 @table @file
2040 @item @trampfn{, , melancholia, .emacs} 2046 @item @trampfn{, , melancholia, .emacs}
2065 current local user name as the remote user name to log in with. If you 2071 current local user name as the remote user name to log in with. If you
2066 need to log in as a different user, you can specify the user name as 2072 need to log in as a different user, you can specify the user name as
2067 part of the filename. 2073 part of the filename.
2068 2074
2069 To log in to the remote machine as a specific user, you use the syntax 2075 To log in to the remote machine as a specific user, you use the syntax
2070 @file{@trampfn{, @var{user}, @var{machine}, @var{path/to.file}}}. 2076 @file{@trampfn{, user, machine, path/to.file}}. That means that
2071 That means that connecting to @code{melancholia} as @code{daniel} and 2077 connecting to @code{melancholia} as @code{daniel} and editing
2072 editing @file{.emacs} in your home directory you would specify 2078 @file{.emacs} in your home directory you would specify
2073 @file{@trampfn{, daniel, melancholia, .emacs}}. 2079 @file{@trampfn{, daniel, melancholia, .emacs}}.
2074 2080
2075 It is also possible to specify other file transfer methods 2081 It is also possible to specify other file transfer methods
2076 (@pxref{Default Method}) as part of the filename. 2082 (@pxref{Default Method}) as part of the filename.
2077 @ifset emacs 2083 @ifset emacs