Results 1 to 5 of 5
Hey,
I am trying to connect to a phone system using a script:
#!/bin/bash
( echo open 10.20.0.10
sleep 1
echo user
sleep 1
echo password
sleep 1
echo exit ...
- 06-08-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 3
Telnet Script
Hey,
I am trying to connect to a phone system using a script:
#!/bin/bash
( echo open 10.20.0.10
sleep 1
echo user
sleep 1
echo password
sleep 1
echo exit ) | telnet
The output of the telnet is:
(c) 2001 Avaya 17:36 08/06/08
Site Name
INDeX Administration
CPU-X1000 :
Username>
Its not inputting the user name etc.
Anyone got any ideas?
Many Thanks
- 06-09-2008 #2
your script has worked for me, so...
perhaps you should also try:
#!/bin/bash
( echo "open 10.20.0.10 -l user"
sleep 1
echo password
sleep 1
echo exit ) | telnet
bye
you may also try setting higher sleeping times
- 06-09-2008 #3Just Joined!
- Join Date
- Jun 2008
- Posts
- 3
Silly question but did you try and connect to a index switch?
Many Thanks
- 06-09-2008 #4Just Joined!
- Join Date
- Jun 2008
- Posts
- 3
Ok
This is really wired. If I add a 'space' so for example:
printf ' ' works
printf 'test' dosn't work
You can see this beeing entered to the switch, but as soon as you put any text it it dosn't do anything.
Many Thanks
- 06-10-2008 #5
yeah, i tried it, and it works for me
and don't understand what you say about the spaces


Reply With Quote