Quantcast
Channel: Active questions tagged expect - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 158

zsh, zpty: How to read the output of a process after it has exited?

$
0
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.


Viewing all articles
Browse latest Browse all 158

Trending Articles