in reply to Re: Testing an interactive script with EOF on input
in thread Solved: Testing an interactive script with EOF on input

Thanks for your reply.

I did try soft_close and hard_close, but these function close the whole pty so that I can't get the output of my program afterwards.

The slave function returns the pty as seen by the tested script. But from there I don't see a way to close STDIN for this script.