Feb-25-2017, 12:33 AM
So I've played a lot but couldn't get it to work. This subprocess module squeezed my brain ![Shocked Shocked](https://python-forum.io/images/smilies/icon_eek.gif)
![Shocked Shocked](https://python-forum.io/images/smilies/icon_eek.gif)
In [1]: text = subprocess.Popen(['echo', '-e', 'it \x08\x08\x08this is one\x08\ ...: x08\x08an example']) this is an example In [2]: text = subprocess.Popen(['echo', '-e', 'it \x08\x08\x08this is one\x08\ ...: x08\x08an example'], stdout=subprocess.PIPE) In [3]: text Out[3]: <subprocess.Popen at 0x7f5a2f791048> In [4]: text.communicate()[0] Out[4]: b'it \x08\x08\x08this is one\x08\x08\x08an example\n'How does this module work
![Wall Wall](https://python-forum.io/images/smilies/eusa_wall.gif)