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.
In reply to Re^2: Testing an interactive script with EOF on input
by mamawe
in thread Solved: Testing an interactive script with EOF on input
by mamawe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |