telnet

Why can't Perl launch telnet under Windows?

I had enabled telnet client feature on Windows 2008, and tried to launch it from a Perl script: perl -e "system('c:\windows\system32\telnet localhost')" Then I got an error like this: 'c:\windows\system32\telnet' is not recognized as an internal or external command, operable program or batch file. I could run it from 'cmd' terminal...

Having trouble with Python's telnetlib module

I have a basic chat server which I can easily connect to with telnet. I simply enter the host and port and, without any further authentication, can begin entering commands that the server can interpret. In an effort to simulate user traffic, I would like to create a script that will open telnet, connect to the server, and immediately beg...

Have SSH login session redirect to interactive telnet to localhost instead

I am developing for a system that has an interactive telnet management console. Requirements dictate that we disable telnet access and add SSH instead. Changing the management console into a stand-alone program that we can use for SSH login would require a vendor to get involved. I was thinking of a less expensive solution that would ...

Sending a CTRL B with java

I am talking to a device via a telnet connection (telnet client from apache), the device requires us to send a CTRL-B to go into a certain mode. How can I send that via java? ...

Cross platform solution for automating ncurses-type telnet sessions

Background Part of my work in networking and telco involves automating telnet sessions when legacy hardware doesn't offer easy solutions in other interfaces. Many older pieces of equipment can only be accessed via craft ports (RS-232 serial ports), SNMP, or telnet. Sometimes telnet is the only way to access specific information, however...

How to fetch a binary file from a remote embeded system using telnet?

Hi, I have a remote embedded system and it is telnet-able. How can I fetch a binary file from it using ruby? If it were a text file, I could have used: con = Net::Telnet::new("Host"=>ip,"Timeout"=>200) #Host not host File.open("fetched_file","w+") do |f| con.cmd("cat /ect/file") {|data| f.write(data)} end But this wo...

How can I debug my Perl Net::Telnet program?

I am trying to automate telnet to a Linux box which doesn't require any authentication through Net::Telnet Perl module. Here is a test script: use strict; use Net::Telnet; my $telnet = new Net::Telnet ( Timeout=>10, Errmode=>'die', host=> '10.104.20.200', port => 2004, ); $tel...

Actionscript flex sockets and telnet

I am trying to make a flex application where it gets data from a telnet connection and I am running into a weird problem. To give a brief introduction, i want to read data from a process that exposes it through a socket. So if in the shell i type telnet localhost 8651i receive the xml and then the connection is closed (I get the followi...

How can I screen-scrape output from telnet in Perl?

I can setup a telnet connection in Perl no problems, and have just discovered Curses, and am wondering if I can use the two together to scrape the output from the telnet session. I can view on a row, column basis the contents of STDOUT using the simple script below: use Curses; my $win = new Curses; $win->addstr(10, 10, 'foo'); $win->r...

Launch VLC in Java and connect to it via rc interface

I've already seen this thread, but I'm still having an issue: http://stackoverflow.com/questions/1731299/starting-vlc-player-in-java It appears the Java bindings for VLC are no longer under active development and do not support everything possible on the command line anyway. Given the following code, I can't launch VLC from a Java appl...

ActionScript 3 - Install a library

I would like to know how can I install a library packages to a Flash project. I am using Adobe Flash CS4 and the library I'm trying to include is in AS3. The library can be found on http://code.google.com/p/as3ansi/ ...

Can anyone recommend a java FOSS server that does all the typical protocols (ssh etc).

I would like to add the ability for users to telnet into my app where by they can type in commands etc. I would like a simple Java Telnet server whereby i can provide the authentication strategy. By "telnet" i am not referring what lib provides telnet connectivity but something a little more. I want the boring protocol stuff done along ...

How can I fix "unknown terminal type" when connecting with Perl's Net::Telnet?

I got a problem connecting to a SUSE linux machine by Perl's Net::Telnet module. The code looks like below: my $t = new Net::Telnet (Timeout => 20); $t->open($server); $t->input_log("telnet.log"); $t->login($user, $pass); my @lines=$t->cmd($command); print @lines; The log file looks like below: Welcome to SUSE Linux Enterprise Se...

push file to remote system through telent using ruby

Hi, I have a remote embedded system which it is telnet-able. How can I download a binary file from the host to it? I can read file from the system, but have no idea how to write to it. ...

Maximum number of concurrent connections on a single port (socket) of Server

Hi, What could be the maximum number of concurrent Clients(using different port number) that could communicate to a Server on the same port (Single socket) ? What are the factors that could influence this count ? I am looking for this information w.r.t telnet in linux environment. Thx in advans, Karthik Balaguru ...

How to write an iphone application to control a device that exposes a telnet api

Hi! I have to write an iphone application that controls a device. This device exposes a telnet based interface. The application should ideally have user access control and customizability for each user. I was thinking of writing C++ classes that would communicate with the device using sockets. This functionality can then be exposed th...

Telnet behaviour on Windows and Linux

I'm working on writing a MUD-like game (in Python, if that matters). I've noticed that the Windows telnet client and Ubuntu's telnet client behave slightly differently when connecting to the server. In Ubuntu, I type something, but the server doesn't recieve anything until I press enter. With Windows, every keystroke is sent to the se...

telnetlib TypeError

I am modifying a python script to make changes en masse to a hand full of switches via telnet: import getpass import sys import telnetlib HOST = "192.168.1.1" user = input("Enter your remote account: ") password = getpass.getpass() tn = telnetlib.Telnet(HOST) tn.read_until("User Name: ") tn.write(user + "\n") if password: tn.read...

[Python] EOL character in Linux and Windows

I'm writing a simple script, that just connects to telnet port, listens everything on it, staying connected and when some string, for example '123' appears, script do something. I use tn.read_until("123", 2), but when '123' appears, script just disconnects. How to make it stay online? ...

How do I send an arrow key in Perl using the Net::Telnet module?

Using the Perl module Net::Telnet, how do you send an arrow key to a telnet session so that it would be the same thing as a user pressing the down key on the keyboard? use Net::Telnet; my $t = new Net::Telnet(); my $down_key=?; #How do you send a down key in a telnet session? t->print($down_key); This list of VT102 codes says that cur...