[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: popen in non-blocking mode
- From: "Gunnar Zötl" <gz@...>
- Date: Wed, 7 Dec 2011 09:06:59 +0100 (MET)
you could look at lpty
----- original message --------
Subject: popen in non-blocking mode
Sent: Tue, 06 Dec 2011
From: Joe McEachern
We are running an external process using io.popen(). Something like ...
ecom = assert(io.popen(cmd, 'r'))
Is there a way to setup non-blocking reads with this type of interface? Or do other lua modules offer more control? What we've seen is that our read() command will block if the external process does not have any data to return. We need a strategy to make this non-blocking.
Thanks for any suggestions,
--- original message end ----