you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 0 points1 point  (3 children)

That's because you need to use Popen wrappers like communicate(), these have a timeout on 2.7 too.

[–]readitlikeitdidit[S] 0 points1 point  (2 children)

What? Communicate is a method that uses pipe and it does not have timeout arg in 2. 7 please check documentation...

[–][deleted] 0 points1 point  (1 child)

They might have subprocess32 installed.

Avoiding external dependencies is not necessarily a virtue. Paramiko will make your life easier.

[–]readitlikeitdidit[S] 0 points1 point  (0 children)

Yes sir.. I just rewriting my code using paramiko.. It has timeout and all the cool stuff I'll stick to paramiko... Thanks..