Running Shell Scripts within Java code!!!

Hi,

How do I run a shell script from my Java code?

Also I need to ensure my next line of Java code is executed only after the shell script has finished executing.

Since my shell script just cuts out some line for a txt file and then only my Java code parses the cut-out file section and processes certain info.

Please help!!!

Thanks!!!

[372 byte] By [abhishek2301a] at [2007-11-27 0:29:22]
# 1
Runtime.exec and, if you need your Java to stop until the external executable is complete, Process.waitFor.And you'll want to read this: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
jverda at 2007-7-11 22:31:41 > top of Java-index,Java Essentials,New To Java...