Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Timeout to readline()/readlines()
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Horta, post: 2763279"] Hi folks, Sometimes, when I do an os.popen*(), the process executed by the command hangs, and the script stops forever on the readline()/ readlines() calls. I found that I can use select, but I'm thinking... if, after a sellect() call returns, the stdout (for example) has more than one line? or if it has just some characters, no newline, and the process just hangs? I just want a readline(timeout) and readlines(timeout) like functions. Do I need to create my owns or there're already implemented? Thanks. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Timeout to readline()/readlines()
Top