[问题] process id in linux

楼主: Jaymainal (发呆中)   2015-11-10 18:25:58
在linux 有 ps -ef | grep processName 可以查 到pid
我的processName 是个外部程式
想请问这个指令有办法用java实作而不使用其他library吗
有找到一个方式
http://superuser.com/questions/635258/ps-ef-grep-java-using-java-program
但是要另外包 apache.commons.jar
或者有其他可以取得其他外部process id 的方式吗
谢谢

Links booklink

Contact Us: admin [ a t ] ucptt.com