0

Start some command with zpty:

zpty -d x ; zpty x 'echo hi' ; sleep 1   

How do I read its output now that it has exited?

zpty -r x

Returns 2, and this behavior seems expected per the manpage.

HappyFace
  • 1,493
  • 9
  • 21

0 Answers0