File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stopping command line execution

 
Johnny Hunter
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the command key combination to interrupt the execution of the Java program from the command line. Thanks!
 
Susanta Chatterjee
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CTRL + C.
 
Francis Siu
Ranch Hand
Posts: 867
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Johnny Hunter
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 867
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic