For running few tests on two different serial ports i.e. ttyS0
and ttyS1
, I need to work on two different terminal windows or tabs, as the commands I have to run should type simultaneously through Python script.
My prior experience was automating some tasks on Windows OS and with the help of win32gui
library for Python it was easy to get window handles.I took help from here for this HWND of each window in Python
But, I couldn't find any library that can help me around here in Ubuntu.