How do I get the commandline that started the process

后端 未结 8 1391
小鲜肉
小鲜肉 2020-11-30 10:25

From Java, is it possible to get the complete commandline with all arguments that started the application?

System.getEnv() and System.getPropertie

8条回答
  •  春和景丽
    2020-11-30 10:55

    If you are using solaris as the OS, take a look at "pargs" utility. Prints all the info required.

提交回复
热议问题