Skip site navigation (1)Skip section navigation (2)
Date:      12 Dec 2001 18:36:32 +0300
From:      Ilya Martynov <m_ilya@agava.com>
To:        David Raistrick <drais@wow.atlasta.net>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG
Subject:   Re: Control-C doesn't work with ssh
Message-ID:  <87elm0tpq7.fsf@juil.domain>
In-Reply-To: <Pine.BSF.4.21.0112120723500.65972-100000@wow.atlasta.net>
References:  <Pine.BSF.4.21.0112120723500.65972-100000@wow.atlasta.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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.

-- 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/)                                    |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80  E4AE BE1A 53EB 323B DEE6 |
| AGAVA Software Company (http://www.agava.com/)                          |
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87elm0tpq7.fsf>