From owner-freebsd-questions Wed Dec 12 8: 8:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 374D037B416 for ; Wed, 12 Dec 2001 08:08:36 -0800 (PST) Received: from [212.238.194.207] (helo=tanya.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16EBvt-000MB4-00 for freebsd-questions@FreeBSD.ORG; Wed, 12 Dec 2001 16:08:33 +0000 Received: by tanya.raggedclown.net (tanya.raggedclown.net, from userid 500) id E71D31133; Wed, 12 Dec 2001 17:08:31 +0100 (CET) Date: Wed, 12 Dec 2001 17:08:31 +0100 From: Cliff Sarginson To: freebsd-questions@FreeBSD.ORG Subject: Re: Control-C doesn't work with ssh Message-ID: <20011212160831.GF22772@raggedclown.net> References: <87elm0tpq7.fsf@juil.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87elm0tpq7.fsf@juil.domain> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Dec 12, 2001 at 06:36:32PM +0300, Ilya Martynov wrote: > >> Have anybody know what can cause for not working Control-C in ssh? > >> > >> It doesn't work anymore on my FreeBSD server if I login on it with > >> ssh. For example I can't break 'tail -f /some/file' with Control-C. It > >> just prints "^C" but doesn't kill the process. I have to suspend it > >> with Control-Z and manually kill with 'kill %1'. > > DR> try setting > > DR> stty intr '^C' > > DR> and see if it will then accept the break. > > DR> I keep one of these in my .login at all times (but then, i'm a tcsh user) > > DR> stty crt -tostop erase '^H' kill '^U' intr '^C' status '^T' > > It doesn't seem to help :( > > BTW I've just found that actually ^C does work in 'tcsh' and 'csh' but > doesn't work with 'bash' and 'sh'. It is very wierd. I've checked all > files 'bash' or 'sh' can use (/etc/profile, $HOME/.profile, etc) but > I've not found anything suspicious. > Send the output of "stty -a" for the culprit and the good guy. -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message