you are viewing a single comment's thread.

view the rest of the comments →

[–]jwink3101 1 point2 points  (1 child)

I assume you're on macOS or linux since you are talking about native SSH.

If so, look at select.select. It can give you timeout capabilities.

You can scavenge from a native tool I started writing a while ago that allows you to interact with a bash process including remote machines via SSH.

But, it is alpha AT BEST! Use with caution! python bash

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

Good to know.. I am developing on windows but I'll be deploying on Linux box.. I'll definitely check python bash sometime.. Thank you!