This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
in java 220.127.116.11 for aix i'm run into an interesting problem.. in my servlet i run the following: <edited for length> ... sProcess = sPath + "User -create -login " + sEmpID + " -address " + eEmpEmail + " -name \"" + sEmpName + "\""; Process createUser = Runtime.getRuntime().exec(sProcess); ... the java (or servlet engine - WebSphere 18.104.22.168) seems to be stripping off the double quotes that i need around the name above.. any ideas on how to fix this? (without upgrading java -- because WebSphere will supposedly not work w/ a higher version) -cs
Author and all-around good cowpoke
posted 15 years ago
You might try one of the other forms of exec, that take an array of String for the command line parameters. That will eliminate the parsing step which appears to strip the quotes. Bill