Operating System - Microsoft
1745847 Members
4430 Online
108723 Solutions
New Discussion юеВ

Re: telnet automatically login to UNIX box

 
SOLVED
Go to solution
Hari Kumar
Trusted Contributor

telnet automatically login to UNIX box

I am trying to write a batch file which supplies Telnet username and password and logins to the unix box.If i run that batch file it will automatically logins to the Unix box.This i need to put in one of scripts.

Thanks in advance.
Information is Wealth ; Knowledge is Power
8 REPLIES 8
Hari Kumar
Trusted Contributor

Re: telnet automatically login to UNIX box

Sorry! there is no question.
I am unable to do that.Help me How to achieve that ?
Information is Wealth ; Knowledge is Power
Claudio Cilloni
Honored Contributor

Re: telnet automatically login to UNIX box

I didn't understand: do you need a telnet window that automatically logins (so you don't need to type username and password) or you need to run a script that runs commands on a remote unix box through a telnet session?

Ciao
Claudio
Hari Kumar
Trusted Contributor

Re: telnet automatically login to UNIX box

Thank you,thats the same i want to achieve,
i want to login to Unix(with no username & password) and run some scripts.
or else
If not a telnet window that gives me unix prompt (so that here in profile i can make them run)

thanks
Information is Wealth ; Knowledge is Power
aparna challagulla
Valued Contributor
Solution

Re: telnet automatically login to UNIX box

hi Hari,

you can look at expect

http://expect.nist.gov/

Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc.

HTH
aparna

If you don't have time to do it right you must have time to do it over
Hari Kumar
Trusted Contributor

Re: telnet automatically login to UNIX box

Thanks for the response.

I need a batch file on desktop as icon which logs in unix with his userid/passwd.
(just a double click),
NO TOOLS & Third party softwares
(can be perl....)


Information is Wealth ; Knowledge is Power
Jerome Henry
Honored Contributor

Re: telnet automatically login to UNIX box

Hi,
edit a new file called, say, mybatch.bat. In it, write :
telnet://user:password@host/command
where user is username, password the password (:]), host your destination host IP adress, and command the commands list you want to run.
Save.
Make a shortcut for this file on your desktop.
Double click on it.

hth

J
You can lean only on what resists you...
Hari Kumar
Trusted Contributor

Re: telnet automatically login to UNIX box

Thanks alot this was the kind of answer i was expecting.BUT in VEIN............
Could not open a connection to host on port 23 : Connect failed

But it is not accepting the string, if i give
telnet:// it says syntax error,
If it space b/w telnet and : then it is taking as host,
Information is Wealth ; Knowledge is Power
Antoniov.
Honored Contributor

Re: telnet automatically login to UNIX box

Jerome,
you don't use standard telnet.

Antoniov
Antonio Maria Vigliotti