• Post Reply Bookmark Topic Watch Topic
  • New Topic

java calling pearl scripts

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for java to call shell scripts or pearl scripts?

Thank you
david
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Java can execute all sorts of external scripts and applications using the java.lang.Runtime class's exec() method. Here's an example:The returned Process exposes input, output and error streams and allows you to wait for it to complete and acquire its exit code. If you just need to kick off the script, you can safely ignore it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!