• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Peter Rooke
Bartenders:

servlet not executing my script ?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic