shell script for telnet .
|
Original Message
|
Name: sunil
Date: June 10, 2003 at 13:56:03 Pacific
Subject: shell script for telnet .OS: UNIXCPU/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.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: David Perry
Date: June 11, 2003 at 03:30:19 Pacific
Subject: shell script for telnet . |
Reply: (edit)You should look at scripting this in expect as an interactive telnet session is beyond the scope of most shells. http://expect.nist.gov/
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: DaBuggin1
Date: June 11, 2003 at 16:56:57 Pacific
Subject: shell script for telnet .
|
Reply: (edit)#!/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
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: ssoni
Date: June 14, 2003 at 12:08:00 Pacific
Subject: shell script for telnet .
|
Reply: (edit)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."
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: