in reply to Re^3: Determine if a program in a different terminal has endedin thread Determine if a program in a different terminal has ended