aspose file tools*
The moose likes Java in General and the fly likes servlet not executing my  script ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "servlet not executing my  script ?" Watch "servlet not executing my  script ?" New topic
Author

servlet not executing my script ?

raghutv raghu
Greenhorn

Joined: Jun 23, 2003
Posts: 2
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

Joined: Sep 29, 2000
Posts: 8521
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: servlet not executing my script ?