• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet not executing my script ?

 
raghutv raghu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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............

[ June 24, 2003: Message edited by: Cindy Glass ]
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic