aspose file tools*
The moose likes Beginning Java and the fly likes Stopping command line execution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Stopping command line execution" Watch "Stopping command line execution" New topic
Author

Stopping command line execution

Johnny Hunter
Ranch Hand

Joined: Jul 15, 2004
Posts: 37
Hi,

What is the command key combination to interrupt the execution of the Java program from the command line. Thanks!


Johnny Hunter
SCJP 1.4
Susanta Chatterjee
Ranch Hand

Joined: Aug 12, 2002
Posts: 102
CTRL + C.
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
Hi Johnny Hunter
I wonder if you could tell me in which platform.

Susanta Chatterjee answered the common one

Unix command can be ctrl-Z


Francis Siu
SCJP, MCDBA
Johnny Hunter
Ranch Hand

Joined: Jul 15, 2004
Posts: 37
Ctrl-C and other variations are not what I am looking for. I want to interrupt the code and have a stack trace dump of all threads when I hit the key. I've seen this and I can remember the key combination. Thanks for your help.
Johnny Hunter
Ranch Hand

Joined: Jul 15, 2004
Posts: 37
I found it: ctrl-break works perfectly on my Win32 system.


More info on what I am talking about here:

http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG6.2.0/installdas/installdas2008.html
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
hi Johnny Hunter

You can search something like signal handler in Java.
Following code is in C program



Hope this help

[ August 17, 2004: Message edited by: siu chung man ]
 
 
subject: Stopping command line execution