aspose file tools*
The moose likes Linux / UNIX and the fly likes i want excute top command in linux using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "i want excute top command in linux using java" Watch "i want excute top command in linux using java" New topic
Author

i want excute top command in linux using java

ravinder thirumala
Greenhorn

Joined: Jan 21, 2001
Posts: 5
i want to execute top command using java
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

well - we won't stop you.

Ah - there was a question?
How to run it?
How to emulate it?


http://home.arcor.de/hirnstrom/bewerbung
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18123
    
  39

I believe "top" extensively uses "curses"... so it may be difficult to just run it, and read the standard output. You might want to use some lower level applicatios like vmstat, netstat, or ps, instead.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i want excute top command in linux using java
 
Similar Threads
Java console application which behaves like top?
How to run remote command from a JSP
How to get Output from command prompt into java console
Importing certificate into keystore.
Executing Windows Command using java