• Post Reply Bookmark Topic Watch Topic
  • New Topic

open shell script  RSS feed

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am new to using java in unix ...
and i need to open a shell script from my program..so that in this shell some actions will be preformed ,,,how can i do that ??
i have no idea about how to do it
so can you please help me with what to do and where to start and what forum to check??
thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run a shell script, use one of the java.lang.Runtime.exec() methods -- this is the way to run any external program in Java.
 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay thanks ...
but can u tell me where to start i mean do u know online tutorial that might help
thanks alot
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about this?
 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ernest Friedman-Hill
Thanks alot for your help
it is a real GREAT start
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!