1833767 Members
2060 Online
110063 Solutions
New Discussion

telnet session

 
DAVID JIMENEZ_2
Frequent Advisor

telnet session

Hi everybody,

I've a problem. I want to build a script for connect to a Unix server from windows pc. This connection must be by telnet session, and the login must be automatic. I have to specify in the script file the user and password for can entry on unix server.

Could anybody help me? I'd very grateful with any valid response.

Best regards,

David.
8 REPLIES 8
Graham Cameron_1
Honored Contributor

Re: telnet session

You're really in the wrong forum.
You need help with a windows script.
What windows utility (eg Reflections, Hummingbird) are you using to connect?
If you're using windows native telnet then it has no scripting and you can't do it.
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
DAVID JIMENEZ_2
Frequent Advisor

Re: telnet session

Hi Graham,

I'm trying to access via Reflection.Could you tell me anything from that application?

Best regards,

David.
Mark Grant
Honored Contributor

Re: telnet session

Also, you are not going to be able to do this with telnet. You need to use rexec (which I believe is on windows) or ssh.
Never preceed any demonstration with anything more predictive than "watch this"
Graham Cameron_1
Honored Contributor

Re: telnet session

You can do it with telnet by writing a reflections script which connects to the target using telnet and then passes in the username and password.
However I don't use reflection and can't script this for you.
Have a look at the WRQ site.
This one looks promising...
http://download.wrq.com/fileinfo.asp?filename=SIMPCONN.RBS
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Jean-Luc Oudart
Honored Contributor

Re: telnet session

With Reflection for Unix you have a recording facility. Then you can edit the script.
The password can be kept encrypted.

Rgds,
JL
fiat lux
Paddy_1
Valued Contributor

Re: telnet session

I have the same situation but I use MKS toolkit which allows me to run Unix-ish utilities like perl and expect scripts which help me log on to remote *nix boxes

Just a thought.
The sufficiency of my merit is to know that my merit is NOT sufficient
A. Clay Stephenson
Acclaimed Contributor

Re: telnet session

A rather neat way to do this is via Perl's Net::Telnet module and yes Perl will run on Windows. You can get a free version from www.activestate.com and then you may need to download Net::Telnet from www.perl.org/CPAN. You can completely automate the process and error checking is trivially easy.
If it ain't broke, I can fix that.
Myles McManus
Frequent Advisor

Re: telnet session

Reflection allows you to create an automatic login to a server via telnet. Maybe this will help?

in X client manager, create a new connection;

method=telnet
hostname=FQDN or ip/port
username=
password=
command= Well, this is where the fun begins, isn't it?

Click on the 'advanced' button and you see that you can specify a series of commands, and in which order they will be executed. This may take some experimenting to get it just right.

When you save this connection, you could call it from scheduler I suppose. I keep some icons for this type of connection on my windows desktop to make logins nice and easy.
There's no place like $HOME.