*BSD News Article 17532


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!usenet
From: niemidc@oasis.gtefsd.com (David C. Niemi)
Newsgroups: comp.unix.bsd
Subject: Re: "stty: TCGETS: Operation not supported on
Date: 25 Jun 1993 22:59:55 GMT
Organization: GTE Federal Systems Division
Lines: 37
Distribution: world
Message-ID: <20g01b$ul@europa.eng.gtefsd.com>
References: <20fqja$2me@gilligan.htc.com>
Reply-To: niemidc@oasis.gtefsd.com
NNTP-Posting-Host: hengist.lab.oasis.gtegsc.com

In article 2me@gilligan.htc.com, naughton@htc.com (Thomas Naughton) writes:
>
> I'm getting this problem on a Sun system as I'm trying to rcp
>a file from one machine to another.  If I do this as root, I have no
>problem, but a regular user gets this error.
["stty: TCGETS: Operation not supported on]
>It seems to occur when I
>do a number of remote commands.  Has anyone seen this?  Thanks in
>advance.
> I can't find anything in the manuals or man pages.  If it's
>relevant, I'm running 4.1 on one of the machines.


It sounds rather like you have a "stty" command in your ".cshrc" file for
that user.  This fails because "rcp" (and "rsh) have no stdin to do a stty on.

Move your "stty" command to ".login" and you should be fine provided
you don't have a "stty dec" in your .login which would later screw things up.

Or, you could guard your "stty" with something like:
if { tty -s } stty erase '^H'

This will not work if you are running on the console, however, as your ".login"
runs AFTER your last .cshrc there.



Let me know if that was the problem.

DCN

---
David C. Niemi: David.Niemi@oasis.gtegsc.com

My opinions are those of my fuzz-brained, cat-sniffing Norwegian Elkhound.