How TRAMP finds and uses programs on the remote machine.
========================================================
TRAMP depends on a number of programs on the remote host in order to
function, including `ls', `test', `find' and `cat'.
In addition to these required tools, there are various tools that
may be required based on the connection method. See Note:Inline
methods and Note:External transfer methods for details on these.
Certain other tools, such as `perl' (or `perl5') and `grep' will be
used if they can be found. When they are available, they are used to
improve the performance and accuracy of remote file access.
When TRAMP connects to the remote machine, it searches for the
programs that it can use. The variable TRAMP-REMOTE-PATH controls the
directories searched on the remote machine.
By default, this is set to a reasonable set of defaults for most
machines. It is possible, however, that your local (or remote ;) system
administrator has put the tools you want in some obscure local
directory.
In this case, you can still use them with TRAMP. You simply need to
add code to your `.emacs' to add the directory to the remote path.
This will then be searched by TRAMP when you connect and the software
found.
To add a directory to the remote search path, you could use code such
as:
;; We load TRAMP to define the variable.
(require 'tramp)
;; We have `perl' in "/usr/local/perl/bin"
(add-to-list 'tramp-remote-path "/usr/local/perl/bin")