3 Replies Latest reply: Jan 29, 2013 6:26 AM by EJP RSS

    Does Processbuilder display the arguments passed in process explorer

    987700
      I am using the below code

      ProcessBuilder probuilder = new ProcessBuilder("sqlplus","system/password", filen, syspass, mApplicationAbbreviation, password);
      probuilder.redirectErrorStream(true);
      Process process = probuilder.start();

      I am passing aruguments to sqlplus where passwords are not to be displayed.

      Question: When I do a ps -ef will the arguments be displayed. How is the parent process send arguments to child ( sqlplus here) when ProcessBuilder is being used?

      I see that they are displayed when I use Runtime.getRuntime().exec( command) where command has the string as above.