Everyone who responded were basically correct. Frank's input was first so
i'll list his response
original question was:
Hello managers. This is probably something simple but here goes. I
received
the error msg "stty: tcgetattr: Permission denied" while attempting a
remote
copy(rcp).
The ".rhosts" on local & remote are set "+". Thanks in advance.
*******************************************************
Frank:
The target account probably has something like
stty erase # or any other stty option
in it's .profile or .login, .cshrc, or some other "dot" file executed by
the shell at login. Stty, since it controls terminal attributes, assumes
that it is connected to a terminal. This is not the case during an rcp job.
The fix is either to remove stty commands from the .profile (or whatever)
file, or to modify the file to run them only if the shell is connected to a
terminal. In the case of Bourne or Korn shells, you can do this by taking
advantage of the fact that the variable PS1 is only defined if the shell is
connected to a terminal. Just surround any terminal attribute manipulating
program with an "if" statement that checks PS1:
if [ "$PS1" ]
then
stty option option etc.
tset option option etc.
fi
Special thanks the following for responding quickly.
Donald Maner
Frank Wortner [frank_at_bondnet.com]
Alan Angulo [alan_at_esu.edu]
aad_at_nw.verio.net
Roger.Picard_at_compaq.com
Stan Robinson
Systems Engineering
800-598-8491
Received on Sat Jun 19 1999 - 10:46:42 NZST