Re: [Tutor] Fwd: Re: I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-25 Thread Alan Gauld via Tutor
On 25/05/16 17:19, Alan Gauld via Tutor wrote: > Here is an actual session using a public telnet site: > import telnetlib tn = telnetlib.Telnet('telehack.com') response = tn.read_some() b'\r\nConnected to TELEH' Oops! a cut n paste error. That line should be: >>> print(respo

Re: [Tutor] Fwd: Re: I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-25 Thread Alan Gauld via Tutor
On 25/05/16 14:11, Angelia Spencer wrote: > in your code below you're telnet-ing to a website, No, I'm telnetting to a server with the IP address mysite.com (which is obviously fictitious, but could be any valid IP address). There is nothing that says it's a web site. (And even some web sites migh

Re: [Tutor] Fwd: Re: I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-25 Thread Alan Gauld via Tutor
> I do get the >>> in the python IDLE but within my python script/file can > I telnet to my controller? Keep in mind when I do log into my controller > it's command line driven. One thing that occurred to me is that you may be better off using the subprocess module to start an interactive telnet

[Tutor] Fwd: Re: I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-24 Thread Alan Gauld via Tutor
Forwarding to the list. Please use reply-all to respond to list messages. Also please use plain text as HTML messages often result in code listings being corrupted, especially the spacing, which is very important in Python. Forwarded Message > I just opened the python IDLE 3.5

[Tutor] Fwd: Re: I've subscribed to your service, no confirmation yet. I'm looking for a tutor and I need help with some code.

2016-05-24 Thread Alan Gauld via Tutor
Forwarding to list... Forwarded Message The box is my controller with and IP address, I'm doing all this from my windows 7 PC. As I said I can type telnet 10.35.56.90 in the dos cmd prompt and get to my controller. I wrote a python script with the user_acct dictionary. I do