I want to run a simple script from a remote machine. The script contains the following:
import os
print str(os.popen('stty size', 'r').read())
If I run it from a local machine, I get a beautiful output, something like 36 138. If I try to run it from another machine, I get <ip>: stty: standard input: Invalid argument(using ssh ot pdsh).
The problem is that I cannot change the script that uses the stty command. This is a common script to which I am writing a wrapper. Suggestions?
source
share