Wavic - I tried that and could not get it to work, but I was probably just doing something wrong? Your comment about windows wanting \r\n, got me thinking and I started playing with my other script again. BOOM!! It works. THANK YOU SOOOO MUCH for helping me get this working! :) Also modified the code so I can simply pass the Pioneer Receiver command to the script. So I can run: phython.exe ControlPioneer.py "PO" and it turns the power on.
Here is the code:
Here is the code:
import time import telnetlib import sys HOST = "192.168.1.140" telnet = telnetlib.Telnet(HOST, 23) telnet.write((sys.argv[1] + "\r\n").encode('ascii')) telnet.close()