是否可以跟踪进程之间的调用?

时间:2019-11-28 21:11:42

标签: java php security command call

是否可以用Java语言创建函数,当我在主程序中通过在php函数中调用的终端中调用它来执行它时,它会打印“此程序由process1.php所调用的终端调用”?
process1.php:

<?php
    exec("java Tracing.java");
?>

Tracing.java:

public class Tracing {
   public void objective(){ /* the source of objective function */}
   public static void main(String[] args){
      new Tracing().objective(); // Output : this program is called by Terminal who is called in process1.php
   }
}

0 个答案:

没有答案
相关问题