Runtime - please explain

admin

Administrator
Staff member
I run this line of code on both UNIX and Windows:returnedProcess = Runtime.getRuntime().exec(command);For some reason, I can't even imagine, it hangs when run on UNIX but worksperfectly fine on Windows.The value of the command string is different depending on which OS it's runningon but is simply the location on respective machine of a program file. (Incidentally,the command works fine when typed direct in the command line)I can only think that there is something different that needs doing whenrunning it on UNIX .Has anybody else had such experiences with the Runtime.exec method and/orcan offer some advice on the subject.John.
 
Back
Top