473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Telnet server implementation

Hi all,

I want to write a telnet server for an embedded linux box using
python.The problem is that it doesn't give a shell ( just a limited
CLI commands for configuring it . )My requirement is to write a telnet
server ( residing on the box) listening on some specific port where it
can listen to telnet requests from clients and provide them an
interactive command line session. I tried using the python's
async_chat module but it is very limited ..any wrappers around this
module so that it can be used more interactively ?? . Any pointers
would be highly appreciated . The current available CLI on this box
allows me to write python scripts remotely , ftp it and run them, so
executing them won't be problem.

Thanks
kumar
Jul 18 '05 #1
1 3807
On Tue, Dec 02, 2003 at 03:49:23AM -0800, kumar wrote:
Hi all,

I want to write a telnet server for an embedded linux box using
python.The problem is that it doesn't give a shell ( just a limited
CLI commands for configuring it . )My requirement is to write a telnet
server ( residing on the box) listening on some specific port where it
can listen to telnet requests from clients and provide them an
interactive command line session. I tried using the python's
async_chat module but it is very limited ..any wrappers around this
module so that it can be used more interactively ?? . Any pointers
would be highly appreciated . The current available CLI on this box
allows me to write python scripts remotely , ftp it and run them, so
executing them won't be problem.


You should be able to use Twisted's telnet implementation for this. There's
an implementation included where the command line session is a pseudo-python
interactive interpreter, which is implemented in twisted/manhole/telnet.py,
the Shell and ShellFactory classes.

You easily can see this in action by running Twisted's mktap and twistd
commands:

mktap telnet --port 4040 --username foo --password bar
twistd -nf telnet.tap

You should be able to figure out how to implement your own telnet command
interpreter in Twisted by reading that code -- if not, please ask for help
on tw************@twistedmatrix.com

-Andrew.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert PADOVANO | last post by:
Hello, I wish to establish a connection in language PHP on a UNIX server by telnet. In fact, I would like : - Connect to server by sending IP adress, login, password - Send an order (example:...
5
by: G520 | last post by:
Hi I have been getting statistical rapports from a machine via a telnet server. Until now it has been done manually. However I want to automate the proccess, and scedule a PHP script to run...
2
by: Dan | last post by:
I'm writing a simplistic telnet client in VB6 and I've run into a small snag. The program has a textbox to write in the string to be sent using ..SendData and has another textbox that displays...
3
by: Yannick Turgeon | last post by:
Hello all, I'm currently trying to pass commands to a telnet session and get the texte generated (stdin + stdout) by the session. The problem I get is that the Telnet.read_until() function...
4
by: Donnal Walter | last post by:
On Windows XP I am able to connect to a remote telnet server from the command prompt using: telnet nnn.nnn.nnn.nnn 23 where nnn.nnn.nnn.nnn is the IP address of the host. But using telnetlib,...
2
by: thilandeneth | last post by:
i need to do telnet via a web server please give me a idia to initiate the project following requirements are needed 1 Create web based custom telnet client to communicate with remote...
3
by: jtagpgmr | last post by:
I need help coming up with a way to create a c# program to help me Telnet to a hostIP.. Any suggestions.. or a way to start..
3
by: =?Utf-8?B?cGlja2VkYW5hbWU=?= | last post by:
Hi, I am trying to establish a telnet session to do screen scraping. This device returns some custom escape sequences, which I can ignore, and some standard escape seq's. At your suggestion, I...
6
by: sherrygomindes | last post by:
Hi I have written a perl script using the Telnet module. I need to remotely login in from one windows XP machine to another XP machine. But i get errors which i can't figure out the reason....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.