Interact with streams using expect