Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to use CTRL+C in Eclipse console?
How to use CTRL+C in Eclipse console? [message #1176961] Fri, 08 November 2013 17:22 Go to next message
Pedro Miguel Pereira Serrano Martins is currently offline Pedro Miguel Pereira Serrano MartinsFriend
Messages: 5
Registered: April 2013
Junior Member
I have a MINA server using Camel that does some clean up routines when being gracefuly terminated by pressing CTRL+C.

Using an Eclipse console, I pressed the"Terminate" button, expecting it to work like CTRL+C. However, such is not the case, Eclipse simply kills the process.

I also tried pressing CTRL+C in the Eclipse console but it does not work.

So, my question is simple, how do I terminate a program running in an Eclipse console using CTRL+C instead of using the Terminate button?
Re: How to use CTRL+C in Eclipse console? [message #1308285 is a reply to message #1176961] Tue, 22 April 2014 02:28 Go to previous messageGo to next message
Paul Verest is currently offline Paul VerestFriend
Messages: 36
Registered: March 2013
Member
It is not yet solved.

http://stackoverflow.com/questions/868412/exiting-ctrlc-a-process-from-console-eclipse-vs-intellij
http://stackoverflow.com/questions/7835212/how-to-send-sigint-signal-from-java-to-an-external-process
http://stackoverflow.com/questions/8814383/sending-sigint-ctrl-c-to-program-running-in-eclipse-console
Re: How to use CTRL+C in Eclipse console? [message #1309620 is a reply to message #1308285] Tue, 22 April 2014 20:15 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

At the moment, you'll have to find the corresponding system process and use "kill" from the command line to send the right signal, e.g. 'kill -INT pid'.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: How to use CTRL+C in Eclipse console? [message #1310932 is a reply to message #1309620] Wed, 23 April 2014 13:43 Go to previous message
Paul Verest is currently offline Paul VerestFriend
Messages: 36
Registered: March 2013
Member
yes, so it is.

As plugin developers, I could not event find Java API to get PID (and show it to user).
Does Eclipse platform provides an API?

Similar previous posts
- http://www.eclipse.org/forums/index.php/t/35035/ 'Ctrl-C' in a console
- http://www.eclipse.org/forums/index.php/t/71563/ sending interrupts (ctrl-c) to the console
- http://www.eclipse.org/forums/index.php/t/59552/ using CTRL-C event in eclipse
Previous Topic:Eclipse not running certain programs/Java SE crashing
Next Topic:Ecplise stopped working with Ubuntu upgrade to 14.04
Goto Forum:
  


Current Time: Thu Apr 25 15:09:04 GMT 2024

Powered by FUDForum. Page generated in 0.09076 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top