Skip to content
Advertisement

Tag: processbuilder

“su ” fails with “standard in must be atty”

I researched this question and all answers suggest visudo to add: Defaults:user !requiretty It does not work! I have two Linux boxes (RedHat). I have a Java class which uses ProcessBuilder/Process to execute commands. The class runs under a system account. On both boxes, I run and provide the password for other-user in an input stream to the Process object.

Java Command Line on Different OS’s

Okay, so I am using process builder to launch an independent java process from the current java process, using the code: to test it, just as a simple questin, will the command always be “java -jar something.jar,” on all operating systems? and if not, what are the formats for mac and linux? Answer The answer is complicated. Some of the

Advertisement