• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to execute shell script from java program  RSS feed

 
charan sri
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone plz letme know how can we execute shell script from a java program?

Thanks in advance,
Charan.
 
Keith Pitty
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look in the java.lang.Runtime class, specifically at the exec(String[]) method. This enables execution of a process within the underlying operating system.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!