I'm close to loosing my mind here.
I can't get telnet running when launched from a python script. I'm running on a newly installed windows 10.
When I run this script:
import subprocess
cmdline = "telnet 172.19.52.34"
rc = subprocess.call("start cmd /K " + cmdline, shell=True)
I get the dreaded error. The CMD stays open and I can't find the telnet command in C:\Windows\System32.
But when I open a normal CMD, telnet works from C:\Windows\System32. A manual look in the C:\Windows\System32\ shows the telnet executable.
When I test the PATH environment variable inside the python launched CMD, the C:\Windows\System32\ is there.
Any pointers to a solution is MUCH appreciated.
Please bring sanity into my world again. ;-)
Kind regards.
/Bernhard