On 28.05.2009 17:58, Tim Pease wrote:
> On Wed, May 27, 2009 at 4:38 PM, Pra Bhandar <pbhandari2050 / gmail.com> wrote:

> Just a guess here, but try closing your oratab_file descriptor. The
> bash shell will usually hang around if there are open file descriptors
> or child processes running. If closing the file descriptor does not
> work, then try looking for open sockets or running children.
> 
> oratab_file = Oratab()
> File.open(oratab_file, 'r') do |ofile|
>   bash.execute ">instancestatus-output.txt"
>   ofile.each { |oratab_line|
>     ...
>   }
> end
> 

Guessing here as well: maybe bash.close helps.

My 0.02 EUR...

	robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/