jQuery in Action, 3rd edition
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "servlet not executing my  script ?" Watch "servlet not executing my  script ?" New topic

servlet not executing my script ?

raghutv raghu

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"

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
I agree. Here's the link: http://aspose.com/file-tools
subject: servlet not executing my script ?
It's not a secret anymore!