i wondered whether expect(1) could be useful. just a thought: don't blame me if it isn't!