Subject: Re: using rsh: "stty: TIOCGETD: Operation not supported"
To: Jeremy C. Reed <reed@reedmedia.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 04/20/2001 12:31:02
On Thu, Apr 19, 2001 at 05:22:05PM -0700, Jeremy C. Reed wrote:
> I was playing with rsh and I see that it runs a command locally if it
> doesn't connect.
> 
> I don't use rsh.
>  Trying 127.0.0.1...
>  rlogin: rcmd: connect to address ::1
>  Connection refused
> 
> Here is my example -- it doesn't connect, gives an error, and then
> executes "ls":
> 
> rainier:~$ rsh localhost ls /
> stty: TIOCGETD: Operation not supported

I suspect you have a stty in your .cshrc.
You should run it only for interactive shells, e.g. something like:
if ($?prompt) then
	stty foo
endif

Actually rsh did connect, and the error message was not from rsh itself
but from the shell it started to exec the command.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--