[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.

Alan Gauld alan.gauld at yahoo.co.uk
Wed May 25 04:21:39 EDT 2016


> 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 process. It's less easy
to control the session programmatically than with telnetlib
but it would give you the interactive element you seem to want.

It just depends on what you are trying to achieve...

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list