i am trying to run my script named "run2" with some parameters. Using the following code. Please check the path that i am executing is there any error in it............
String [] path ={"/bin/sh/","//home//raghu//temp//run2","1","1","8","p"}; The /bin/sh/ needs to have escapes for the slashes to get by the compiler. //bin//sh// That is a security parameter? Other than that, if your parameters are correct this looks ok. This really does not relate to Servlets. Moving this to Intermediate.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Don't get me started about those stupid light bulbs.