473,385 Members | 1,465 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,385 software developers and data experts.

Multiple concurrent telnet sessions

Hello,

Anyone know if running two client telnet sessions at the same time
should be an inherent problem? They don't seem to want to share a port
or are they trying to use the same console for interaction with the
connected servers?

-Tony

Hello from parent loop 1 ipaddress1
Hello from parent loop 2 ipaddress2
Hello from thread 1
Hello from thread 2
Unhandled exception in thread started by <bound method Telnet.listener
of <telnetlib.Telnet instance at 0xf6f8ea6c>>
Unhandled exception in thread started by <bound method Telnet.listener
of <telnetlib.Telnet instance at 0xf6f8eacc>>
Traceback (most recent call last):
File "telmt.py", line 34, in ?
time.sleep(60)
import thread, sys, time, telnetlib

def child(tid,ip):
print 'Hello from thread', tid
tn = telnetlib.Telnet()
tn.mt_interact()
tn.open(ip, 10001)
def clear(tn):
tn.write("AT")
tn.expect("OK")
tn.write("ATMC")
tn.expect("OK")
tn.expect("ATUCL")
tn.expect("OK")
clear(tn)
time.sleep(1)
tn.write("ATDI,15,00000000")
(unparsed, ack) = expect("DONE")
print unparsed
time.sleep(1)
clear(tn)

def parent(iplist):
i = 0
for ip in iplist:
i = i+1
tuple = (i, ip,)
thread.start_new_thread(child, tuple)
print 'Hello from parent loop', i, ' ', ip

iplist = ["ip.ad.dr.1", "ip.ad.dr.2"]
parent(iplist)
time.sleep(60)
Jul 18 '05 #1
1 4021
On 2004-12-08, Tony Pryor <dp******@gmail.com> wrote:
Hello,

Anyone know if running two client telnet sessions at the same time
should be an inherent problem? They don't seem to want to share a port
or are they trying to use the same console for interaction with the
connected servers?


I don't know if it will work, but have you looked at using
twisted for networking? If nothing else, someone on the
twisted mailing list may be able to point you in the right
direction...

http://twistedmatrix.com/
Jul 18 '05 #2

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

Similar topics

1
by: Michael | last post by:
Dear all, Given the following challenge: 1. The application is an exe on a W2K server 2. User logs via telnet to the server 3. After checking the user account and password, a bat file runs...
1
by: Siva Palaninathan | last post by:
Hi, I am trying to automate telnet sessions to retrive information from a linux box. The box is not running a full-featured version of linux, embedded linux, has very limited sources, memory,...
2
by: Steven Blair | last post by:
Hi, I have Server application which handles a single conenction froma client. I want this program to accept concurrent connections. Anyone help me out ? I am using a TcpListener object. I...
6
by: Bill Manring | last post by:
I have an ASP.NET application which my company sells comercially. We license on a concurrent user model, but we currently rely on the "honor" system for the customers to give us their best guess...
2
by: jasonsgeiger | last post by:
From: "Factor" <jasonsgeiger@gmail.com> Newsgroups: microsoft.public.in.csharp Subject: Multiple Clients, One port Date: Wed, 19 Apr 2006 09:36:02 -0700 I'm been working with sockets for a...
2
by: vmalhotra | last post by:
Hi I am new in python scripting. I want to open a Multiple telnet session through once script. In other way i can tell i want to open two linux consoles through one script. I wrote one...
2
by: runner7 | last post by:
Can anyone tell me if there is a way in PHP to determine when a session times out on the server or how many concurrent sessions there are in your application?
2
by: mktselvan | last post by:
Hi, Existing running oracle application 11i (11.5.8) Database version is 8.1.7.4 There is any command / way to know the number of concurrent users for this application. ...
0
by: contactme | last post by:
Hi, Is it possible to open concurrent connections using Net::IMAP::Simple library ? My IMAP server allows 4 connections per ip, so I am having following problems while using Net::IMAP::Simple and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.