имеется скрипт
text
#/bin/bash
expect -c '
spawn telnet $ip
expect "UserName:" {send "visor\r"}
expect "PassWord:" {send "switch\r"}
set VLAN 2500
while "$VLAN < 2550" {
expect "#" {send "creat vlan vlan$VLAN tag $VLAN\r"}
expect "#" {send "conf vlan vlan$VLAN add tag 24,25\r"}
set VLAN [expr $VLAN + 1]
if {$VLAN > 2550} break ;
}
expect "#" {send "save all\r"}
expect eof'
как сделать запрос на ввод переменной $ip
те что бы он в самом начале выполнения скрипта после запуска просил ее ввести