PDA

View Full Version : invoking shell from java using exec()??



binilbenjamin
April 17th, 2006, 06:24 PM
if we invoke a shell in java with exec("sh") statement , a new shell will be invoked, but that would run the shell under the current user mode....is there any way to invoke the shell in login mode or in a root mode using exec().... ???pls help.........