dcsimg
How to customise the Process name in "top" command.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, October 10, 2001 08:18 AM

For example if we run "java MyProcess". In the "top" command, the COMMAND column shows the process name as "java", but I need that to be displayed as "MyProcess".


Is there any way to do this ??

Re: How to customise the Process name in "top" command.

Posted By:   Nathan_Meyers  
Posted On:   Wednesday, October 10, 2001 05:59 PM

Not easily. A native process might be able to do this for a process it launches by controlling the argv[0] value in the native exec() call, but getting there from Java would be tricky and probably not possible.
About | Sitemap | Contact