Restricted shell (was Re: rsh e
kai at uicsrd.csrd.uiuc.edu
kai at uicsrd.csrd.uiuc.edu
Thu Dec 29 14:32:00 AEST 1988
In responce to the original question, which was how to customize the
environment on the remote machine using the BSD remote shell (rsh) command,
if you use C shell, your remote .cshrc is sourced, but not your .login file.
Setup what you want in your remote .cshrc file, for example:
# ~/.cshrc
if ($?prompt) then
# setup for interactive shell
alias bye logout
else
# for non-interactive shells, like rsh
set path = ( /usr/local/bin /usr/ucb /bin /usr/bin . )
endif
Patrick Wolfe (pat at kai.com, kailand!pat)
More information about the Comp.unix.wizards
mailing list