Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-20 Thread Ilia K.
On Fri, Sep 17, 2010 at 7:58 AM, Andrew DeFaria and...@defaria.com wrote:
  On 09/16/2010 12:05 PM, Ilia K. wrote:

 Have you tried to ssh to cygwin, then run cmd.exe (to get a dos
 prompt) and then press Ctrl-C?

 Good lord man! Why would I want to do that?!?

 In my case this terminates cmd.exe and
 returns to bash, but this behavior is wrong (try to press Ctrl-C in
 cmd.exe which is run directly from the desktop, not from ssh session).

 Stop using cmd.

cmd is just an example of native CUI windows program. Right now I
actually need to run cdb, which is quite different app.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-20 Thread Ilia K.
It looks like my reply got lost in mailer's spam filters, reposting.

On Wed, Sep 15, 2010 at 5:36 PM, Christopher Faylor wrote:
...
 Cygwin summarily halts a pure-Windows process on receiving a CTRL-C.
 There is no way around that other than to relink the program to use
 Cygwin.

Do you state that there is absolutely no way to make it work as I need?
This would be very pity...

Do you know what's the difference between running bash from sshd and
from the desktop? In the later case, Ctrl-C works as expected! To me
it looks like cygwin knows how to pass Ctrl-C to native apps, but sshd
somehow interferes with it.

Regards,
Ilia.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-20 Thread Larry Hall (Cygwin)

On 9/20/2010 6:22 AM, Ilia K. wrote:

It looks like my reply got lost in mailer's spam filters, reposting.

On Wed, Sep 15, 2010 at 5:36 PM, Christopher Faylor wrote:
...

Cygwin summarily halts a pure-Windows process on receiving a CTRL-C.
There is no way around that other than to relink the program to use
Cygwin.


Do you state that there is absolutely no way to make it work as I need?
This would be very pity...

Do you know what's the difference between running bash from sshd and
from the desktop? In the later case, Ctrl-C works as expected! To me
it looks like cygwin knows how to pass Ctrl-C to native apps, but sshd
somehow interferes with it.


See http://cygwin.com/cygwin-ug-net/using-cygwinenv.html and look for the
'tty' setting.  If you set 'tty' before starting 'bash', you'll see the same
issue even using a plain console (cmd.exe). I'm assuming that's
what you mean when you say from the desktop above.  Actual terminals,
rxvt, mintty, etc., will have the same behavior you saw with 'sshd'.
Currently, there is no way to support ptys and make Windows understand them
as something other than a pipe.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-17 Thread Chan Kar Heng

Actually, why do you use cmd?

On 2010-09-17 13:58, Andrew DeFaria wrote:

On 09/16/2010 12:05 PM, Ilia K. wrote:

Have you tried to ssh to cygwin, then run cmd.exe (to get a dos
prompt) and then press Ctrl-C?

Good lord man! Why would I want to do that?!?

In my case this terminates cmd.exe and
returns to bash, but this behavior is wrong (try to press Ctrl-C in
cmd.exe which is run directly from the desktop, not from ssh session).

Stop using cmd.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-16 Thread Ilia K.
On Wed, Sep 15, 2010 at 4:43 AM, Andrew DeFaria and...@defaria.com wrote:
 On 09/14/2010 08:39 AM, Ilia K. wrote:

 Hi, All.
 I've searched quite a lot for the subj and found no solution yet.
 I've installed the last cygwin+openssh on Windows XP. I want to
 connect from linux and run some native console applications
 (non-cygwin CUI, particularly, cdb and cmd) and I need these
 applications to correctly handle Ctrt-C.
 If such CUI application is started from local cygwin bash window it
 handles Ctrl-C properly, but if it's started over ssh Ctrl-C
 terminates application and the control returns to bash (the one which
 runs on the server, ssh session doesn't terminate).

 Control-C works from me ssh'ing from Linux - Cygwin. Of course my Cygwin is
 running on Windows 7 (Actually a vm of Windows 7) but IIRC Control-C also
 works at work when I ssh from Linux - Cygwin on XP.

 Earth:uname -a
 Linux earth 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010
 x86_64 GNU/Linux
 Earth:ssh pluto
 Last login: Tue Sep 14 19:40:43 2010 from earth
 Pluto:uname -a
 CYGWIN_NT-6.1-WOW64 Pluto 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin
 Pluto:^C
 Pluto:stty -a
 speed 38400 baud; rows 24; columns 80; line = 0;
 intr = ^C; quit = ^\; erase = ^H; kill = ^X; eof = ^D; eol = undef;
 eol2 = undef; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
 werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
 -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
 -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
 -ixoff
 -iuclc -ixany imaxbel
 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
 ff0
 isig icanon iexten echo echoe -echok -echonl -noflsh tostop echoctl echoke
 Pluto:


Have you tried to ssh to cygwin, then run cmd.exe (to get a dos
prompt) and then press Ctrl-C? In my case this terminates cmd.exe and
returns to bash, but this behavior is wrong (try to press Ctrl-C in
cmd.exe which is run directly from the desktop, not from ssh session).

Regards,
Ilia.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-16 Thread Christopher Faylor
On Thu, Sep 16, 2010 at 09:05:43PM +0200, Ilia K. wrote:
On Wed, Sep 15, 2010 at 4:43 AM, Andrew DeFaria and...@defaria.com wrote:
 On 09/14/2010 08:39 AM, Ilia K. wrote:

 Hi, All.
 I've searched quite a lot for the subj and found no solution yet.
 I've installed the last cygwin+openssh on Windows XP. I want to
 connect from linux and run some native console applications
 (non-cygwin CUI, particularly, cdb and cmd) and I need these
 applications to correctly handle Ctrt-C.
 If such CUI application is started from local cygwin bash window it
 handles Ctrl-C properly, but if it's started over ssh Ctrl-C
 terminates application and the control returns to bash (the one which
 runs on the server, ssh session doesn't terminate).

 Control-C works from me ssh'ing from Linux - Cygwin. Of course my Cygwin is
 running on Windows 7 (Actually a vm of Windows 7) but IIRC Control-C also
 works at work when I ssh from Linux - Cygwin on XP.

 Earth:uname -a
 Linux earth 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010
 x86_64 GNU/Linux
 Earth:ssh pluto
 Last login: Tue Sep 14 19:40:43 2010 from earth
 Pluto:uname -a
 CYGWIN_NT-6.1-WOW64 Pluto 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin
 Pluto:^C
 Pluto:stty -a
 speed 38400 baud; rows 24; columns 80; line = 0;
 intr = ^C; quit = ^\; erase = ^H; kill = ^X; eof = ^D; eol = undef;
 eol2 = undef; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
 werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
 -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
 -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
 -ixoff
 -iuclc -ixany imaxbel
 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
 ff0
 isig icanon iexten echo echoe -echok -echonl -noflsh tostop echoctl echoke
 Pluto:


Have you tried to ssh to cygwin, then run cmd.exe (to get a dos
prompt) and then press Ctrl-C? In my case this terminates cmd.exe and
returns to bash, but this behavior is wrong (try to press Ctrl-C in
cmd.exe which is run directly from the desktop, not from ssh session).

http://cygwin.com/ml/cygwin/2010-09/msg00468.html

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-16 Thread Andrew DeFaria

 On 09/16/2010 12:05 PM, Ilia K. wrote:

Have you tried to ssh to cygwin, then run cmd.exe (to get a dos
prompt) and then press Ctrl-C?

Good lord man! Why would I want to do that?!?

In my case this terminates cmd.exe and
returns to bash, but this behavior is wrong (try to press Ctrl-C in
cmd.exe which is run directly from the desktop, not from ssh session).

Stop using cmd.
--
Andrew DeFaria http://defaria.com
Do hungry crows have ravenous appetites?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-15 Thread Chan Kar Heng

Hi there.

I use cygwin to ssh into numerous systems very often, such as AIX, HP 
UX, Solaris, DEC Alpha. I've always managed to send ctrl-c (by pressing 
ctrl-]) to the app running on that platform. There was only 1 rare case 
when it didn't.

Not sure what you mean by native apps... If you could clarify?

KarHeng

Ilia K. wrote:

On Tue, Sep 14, 2010 at 7:58 PM, Chan Kar Heng chankarh...@gmail.com wrote:

Hi there.

I've had the same problem in the past.
Posted a temporary solution here:

http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html


This is an interesting hack, but unfortunately it won't work for
native apps, only for cygwin-linked.

Regards,
Ilia.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-15 Thread Christopher Faylor
On Wed, Sep 15, 2010 at 11:31:16PM +0800, Chan Kar Heng wrote:
Ilia K. wrote:
On Tue, Sep 14, 2010 at 7:58 PM, Chan Kar Heng wrote:
I've had the same problem in the past.  Posted a temporary solution
here:

http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html

This is an interesting hack, but unfortunately it won't work for
native apps, only for cygwin-linked.

I use cygwin to ssh into numerous systems very often, such as AIX, HP
UX, Solaris, DEC Alpha.  I've always managed to send ctrl-c (by
pressing ctrl-]) to the app running on that platform.  There was only 1
rare case when it didn't.  Not sure what you mean by native apps...
If you could clarify?

It seems pretty clear:  He means non-cygwin-dll-using Windows apps.

Cygwin summarily halts a pure-Windows process on receiving a CTRL-C.
There is no way around that other than to relink the program to use
Cygwin.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-15 Thread Chan Kar Heng

Hi there. Sorry. I misread your mail.

For those native apps, perhaps you can try sending SIGINT to that CUI 
app using kill?
Else, find a Windows app that is capable of pushing a Ctrl-C into the 
keyboard buffer. If you know some programming, it's not difficult to 
write if you know the correct APIs to call.


KarHeng

Chan Kar Heng wrote:

Hi there.

I use cygwin to ssh into numerous systems very often, such as AIX, HP 
UX, Solaris, DEC Alpha. I've always managed to send ctrl-c (by pressing 
ctrl-]) to the app running on that platform. There was only 1 rare case 
when it didn't.

Not sure what you mean by native apps... If you could clarify?

KarHeng

Ilia K. wrote:
On Tue, Sep 14, 2010 at 7:58 PM, Chan Kar Heng chankarh...@gmail.com 
wrote:

Hi there.

I've had the same problem in the past.
Posted a temporary solution here:

http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html


This is an interesting hack, but unfortunately it won't work for
native apps, only for cygwin-linked.

Regards,
Ilia.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple






--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-15 Thread Christopher Faylor
On Wed, Sep 15, 2010 at 11:47:34PM +0800, Chan Kar Heng wrote:
Chan Kar Heng wrote:
 I use cygwin to ssh into numerous systems very often, such as AIX, HP 
 UX, Solaris, DEC Alpha. I've always managed to send ctrl-c (by pressing 
 ctrl-]) to the app running on that platform. There was only 1 rare case 
 when it didn't.
 Not sure what you mean by native apps... If you could clarify?
 
 KarHeng
 
 Ilia K. wrote:
 On Tue, Sep 14, 2010 at 7:58 PM, Chan Kar Heng chankarh...@gmail.com 
 wrote:
 Hi there.

 I've had the same problem in the past.
 Posted a temporary solution here:

 http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html

 This is an interesting hack, but unfortunately it won't work for
 native apps, only for cygwin-linked.

For those native apps, perhaps you can try sending SIGINT to that CUI 
app using kill?

This won't work for the reason I previously mentioned.

Else, find a Windows app that is capable of pushing a Ctrl-C into the
keyboard buffer.  If you know some programming, it's not difficult to
write if you know the correct APIs to call.

That might work if the windows process is expecting input but it
probably will fail otherwise.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



ssh from linux to cygwin + CUI + Ctrl-C

2010-09-14 Thread Ilia K.
Hi, All.
I've searched quite a lot for the subj and found no solution yet.
I've installed the last cygwin+openssh on Windows XP. I want to
connect from linux and run some native console applications
(non-cygwin CUI, particularly, cdb and cmd) and I need these
applications to correctly handle Ctrt-C.
If such CUI application is started from local cygwin bash window it
handles Ctrl-C properly, but if it's started over ssh Ctrl-C
terminates application and the control returns to bash (the one which
runs on the server, ssh session doesn't terminate).

I would appreciate a solution besides using another remote access
program (freessh, VNC, RDP, etc.).

Below is my current bash environment when run from sshd (note, CYGWIN
is unset and TERM=xterm).

HOMEPATH=\cygwin\home\user
MANPATH=/usr/local/man:/usr/share/man:/usr/man:
_NT_DEBUG_LOG_FILE_APPEND=C:\cygwin\home\user\ntdebug.log
HOSTNAME=winxp-vbox
_NT_SYMBOL_PATH=srv*C:\cygwin\home\user\symbols*http://msdl.microsoft.com/download/symbols;cache*C:\cygwin\home\user\symbols
TERM=xterm
SHELL=/bin/bash
WINDIR=C:\WINDOWS
SSH_CLIENT=192.168.56.1 57891 22
MYDIR=/home/user
OLDPWD=/home/user
USERDOMAIN=NT AUTHORITY
SSH_TTY=/dev/tty0
OS=Windows_NT
ALLUSERSPROFILE=C:\Documents and Settings\All Users
USER=user
USERNAME=SYSTEM
MAIL=/var/spool/mail/user
PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/bin:/cygdrive/c/Program
Files/Bazaar/:/cygdrive/c/Program Files/Debugging Tools for Windows
(x86)/
PWD=/home/user
SYSTEMDRIVE=C:
LANG=C.UTF-8
USERPROFILE=C:\Documents and Settings\user
PS1=\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$
HISTIGNORE=[]*::[fb]g:exit:ls
HISTCONTROL=ignoreboth
SHLVL=1
HOME=/home/user
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
HOMEDRIVE=C:
COMSPEC=C:\WINDOWS\system32\cmd.exe
LOGNAME=user
SYSTEMROOT=C:\WINDOWS
PRINTER=
CVS_RSH=/bin/ssh
SSH_CONNECTION=192.168.56.1 57891 192.168.56.101 22
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
COMPUTERNAME=WINXP-VBOX


Thanks,
Ilia.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-14 Thread Chan Kar Heng

Hi there.

I've had the same problem in the past.
Posted a temporary solution here:

http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html

Best regards,

KarHeng

Ilia K. wrote:

Hi, All.
I've searched quite a lot for the subj and found no solution yet.
I've installed the last cygwin+openssh on Windows XP. I want to
connect from linux and run some native console applications
(non-cygwin CUI, particularly, cdb and cmd) and I need these
applications to correctly handle Ctrt-C.
If such CUI application is started from local cygwin bash window it
handles Ctrl-C properly, but if it's started over ssh Ctrl-C
terminates application and the control returns to bash (the one which
runs on the server, ssh session doesn't terminate).

I would appreciate a solution besides using another remote access
program (freessh, VNC, RDP, etc.).

Below is my current bash environment when run from sshd (note, CYGWIN
is unset and TERM=xterm).

HOMEPATH=\cygwin\home\user
MANPATH=/usr/local/man:/usr/share/man:/usr/man:
_NT_DEBUG_LOG_FILE_APPEND=C:\cygwin\home\user\ntdebug.log
HOSTNAME=winxp-vbox
_NT_SYMBOL_PATH=srv*C:\cygwin\home\user\symbols*http://msdl.microsoft.com/download/symbols;cache*C:\cygwin\home\user\symbols
TERM=xterm
SHELL=/bin/bash
WINDIR=C:\WINDOWS
SSH_CLIENT=192.168.56.1 57891 22
MYDIR=/home/user
OLDPWD=/home/user
USERDOMAIN=NT AUTHORITY
SSH_TTY=/dev/tty0
OS=Windows_NT
ALLUSERSPROFILE=C:\Documents and Settings\All Users
USER=user
USERNAME=SYSTEM
MAIL=/var/spool/mail/user
PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/bin:/cygdrive/c/Program
Files/Bazaar/:/cygdrive/c/Program Files/Debugging Tools for Windows
(x86)/
PWD=/home/user
SYSTEMDRIVE=C:
LANG=C.UTF-8
USERPROFILE=C:\Documents and Settings\user
PS1=\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$
HISTIGNORE=[]*::[fb]g:exit:ls
HISTCONTROL=ignoreboth
SHLVL=1
HOME=/home/user
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
HOMEDRIVE=C:
COMSPEC=C:\WINDOWS\system32\cmd.exe
LOGNAME=user
SYSTEMROOT=C:\WINDOWS
PRINTER=
CVS_RSH=/bin/ssh
SSH_CONNECTION=192.168.56.1 57891 192.168.56.101 22
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
COMPUTERNAME=WINXP-VBOX


Thanks,
Ilia.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-14 Thread Ilia K.
On Tue, Sep 14, 2010 at 7:58 PM, Chan Kar Heng chankarh...@gmail.com wrote:
 Hi there.

 I've had the same problem in the past.
 Posted a temporary solution here:

 http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html

This is an interesting hack, but unfortunately it won't work for
native apps, only for cygwin-linked.

Regards,
Ilia.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: ssh from linux to cygwin + CUI + Ctrl-C

2010-09-14 Thread Andrew DeFaria



On 09/14/2010 08:39 AM, Ilia K. wrote:

Hi, All.
I've searched quite a lot for the subj and found no solution yet.
I've installed the last cygwin+openssh on Windows XP. I want to
connect from linux and run some native console applications
(non-cygwin CUI, particularly, cdb and cmd) and I need these
applications to correctly handle Ctrt-C.
If such CUI application is started from local cygwin bash window it
handles Ctrl-C properly, but if it's started over ssh Ctrl-C
terminates application and the control returns to bash (the one which
runs on the server, ssh session doesn't terminate).
Control-C works from me ssh'ing from Linux - Cygwin. Of course my 
Cygwin is running on Windows 7 (Actually a vm of Windows 7) but IIRC 
Control-C also works at work when I ssh from Linux - Cygwin on XP.


Earth:uname -a
Linux earth 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 
2010 x86_64 GNU/Linux

Earth:ssh pluto
Last login: Tue Sep 14 19:40:43 2010 from earth
Pluto:uname -a
CYGWIN_NT-6.1-WOW64 Pluto 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin
Pluto:^C
Pluto:stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^X; eof = ^D; eol = undef;
eol2 = undef; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon 
-ixoff

-iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 
vt0 ff0

isig icanon iexten echo echoe -echok -echonl -noflsh tostop echoctl echoke
Pluto:


--
Andrew DeFaria http://defaria.com
Why can't women put on mascara with their mouth closed?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple