telnet automatically login to UNIX box (96 Views)
Reply
Trusted Contributor
Hari Kumar
Posts: 182
Registered: ‎01-09-2003
Message 1 of 9 (96 Views)
Accepted Solution

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
Please use plain text.
Trusted Contributor
Hari Kumar
Posts: 182
Registered: ‎01-09-2003
Message 2 of 9 (96 Views)

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
Please use plain text.
Honored Contributor
Claudio Cilloni
Posts: 335
Registered: ‎05-14-2003
Message 3 of 9 (96 Views)

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
Please use plain text.
Trusted Contributor
Hari Kumar
Posts: 182
Registered: ‎01-09-2003
Message 4 of 9 (96 Views)

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
Please use plain text.
Valued Contributor
aparna challagulla
Posts: 157
Registered: ‎05-29-2003
Message 5 of 9 (96 Views)

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
Please use plain text.
Trusted Contributor
Hari Kumar
Posts: 182
Registered: ‎01-09-2003
Message 6 of 9 (96 Views)

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
Please use plain text.
Honored Contributor
Jerome Henry
Posts: 1,529
Registered: ‎11-07-2002
Message 7 of 9 (96 Views)

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...
Please use plain text.
Trusted Contributor
Hari Kumar
Posts: 182
Registered: ‎01-09-2003
Message 8 of 9 (96 Views)

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
Please use plain text.
Honored Contributor
Antoniov.
Posts: 3,182
Registered: ‎07-08-2003
Message 9 of 9 (96 Views)

Re: telnet automatically login to UNIX box

Jerome,
you don't use standard telnet.

Antoniov
Antonio Maria Vigliotti
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation