I am using following script to reboot my router using Telnet:
#!/usr/bin/env python import os import telnetlib from time import sleep host = \"192.168.1.1\
Actually, this has nothing to do with the usual Windows / Unix \r\n vs \n issue. The TELNET procotol itself defines \r\n as the end-of-line sequence, independently of the operating system. See RFC854.
\r\n
\n