Telnet to remote system and format output via web page

Jean-Michel Pichavant jeanmichel at sequans.com
Wed Sep 11 08:51:41 EDT 2013


----- Original Message -----
> Hi
> 
> 
> I would like to create a web  app using flask or cgi library  along
> with telnetlib to telnet to specific servers and execute commands
> and retrieve the output.
> The output will then be  formatted and outputted to a webpage .
> 
> . Is this the best way of getting info from a remote system to be
> output to a web page?
> 
> Is flask over kill for project like this ?
> 
> Thanks,
> Kenroy
> --
> https://mail.python.org/mailman/listinfo/python-list


I never used Flask, but most of python web framework provide an easy/quick way of setting up a web application server. So I'd say Flask is just fine.
What concerns me is the telnet protocol you plan to use for remote execution. Do you have any other options ? are you trying to execute on a remote unix like system ?

Anyway if you must stick with telnet, I don't see anything wrong in your plan, Flask + telnetlib should do the trick.


JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the Python-list mailing list