From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079044115821.tru64-unix-managers.marc@archive.invalid> From: Stan Robinson Date: Sat, 19 Jun 1999 10:42:24 +0000 To: tru64-unix-managers Subject: SUMMARY:rcp X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079044115821 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@bondnet.com] Alan Angulo [alan@esu.edu] aad@nw.verio.net Roger.Picard@compaq.com Stan Robinson Systems Engineering 800-598-8491