my dog learned polymorphism*
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 8 in Action this week in the Java 8 forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet not executing my script ?
 
Similar Threads
servlet not executing my script ?
SimpleServlet.java:2: package javax.servlet does not exist
servlet not found
error in connectivity with database
error in connectivity with database