Computing.Net > Forums > Unix > shell script for telnet .

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

shell script for telnet .

Reply to Message Icon

Name: sunil
Date: June 10, 2003 at 13:56:03 Pacific
OS: UNIX
CPU/Ram: 2Ghz/4GB
Comment:

hello,
every body , i need a script for login to a router by taking USER and PASSWORD from the script itself(i.e automate login).It is possible or any other way.Your reply in this regards is highly appreciable.Once i heard of TCPF what is this?? any idea.



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: June 11, 2003 at 03:30:19 Pacific
Reply:

You should look at scripting this in expect as an interactive telnet session is beyond the scope of most shells.

http://expect.nist.gov/


0

Response Number 2
Name: DaBuggin1
Date: June 11, 2003 at 16:56:57 Pacific
Reply:

#!/bin/ksh
read HOST?"Host Address:"
read USER?"Login:"
read PASS?"Password:"

#!/bin/sh
tpipe() {
sleep 3;echo $USER
sleep 1;echo $PASS
}
tpipe | telnet $HOST


0

Response Number 3
Name: ssoni
Date: June 14, 2003 at 12:08:00 Pacific
Reply:

can any one also help me" i want to change the last number in this ip 203.199.23.98 .The last number that is 98 to some other required number , i mean i want to replace 98 with other number using shell script.Plz tell me the syntax."


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: shell script for telnet .

shell script for sent e-mail www.computing.net/answers/unix/shell-script-for-sent-email/5000.html

shell script for string encryption www.computing.net/answers/unix/shell-script-for-string-encryption/7406.html

shell script for ftp www.computing.net/answers/unix/shell-script-for-ftp/4063.html