A Note on using Remote Access Commands



When using rsh, rcp, gtar, etc. remote access commands, BE CAUTIOUS about the
.cshrc (.tcshrc...) file on the remote host's home directory. Those commands will be
confused by any standard output generated by .cshrc (.tcshrc ...) on remote host (such
as 'echo ...', etc.), which in most cases lead to the failure of those remote commands.

The solution is to be sure to either comment out those lines in your .cshrc (.tcshrc ...)
on the remote hosts which will generate standard output, or put some condition (if ...
then ...) around them.

Example:

        if($?TERM == 1) then
          echo 'Welcome to shark'
        endif
In this example, when remote commands are used the TERM environment is not set
(so the return value is `0'), the echo line will not be executed.