This discussion is archived
3 Replies Latest reply: Jan 29, 2013 4:26 AM by EJP RSS

Does Processbuilder display the arguments passed in process explorer

987700 Newbie
Currently Being Moderated
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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points