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 19:22:53
On Fri, Apr 20, 2001 at 09:11:18AM -0700, Jeremy C. Reed wrote:
> [...]
> And one more test ...
> 
>  rainier:~$ echo $$
>  4465
>  rainier:~$ time rsh reed@localhost echo $$
>  stty: TIOCGETD: Operation not supported
>  4465

try:
rsh reed@localhost echo '$$'

without quotes, the shell does the variable extention before the rsh, and
your command is equivalent to
rsh reed@localhost echo 4465
which of course will print 4465 whatever happens

> I need to look at the code, because I don't understand. (I do know that no
> r services are listening.)

rshd is started from inetd. did you check inetd.conf ?

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