I would like to execute a command on a remote machine using telnet as,
telnet x.x.x.x command or similar
I want to include this as part of a script in Python ( subprocess ) and hence need it in one line. Or, are there any other ways to do the same?
Any help is appreciated.
Thanks.
stdinandstdoutto communicate with a Telnet binary. But why not just usetelnetlibinstead, as I suggested?