私はCUCMにログインしていますが、正しいコマンドが1つ実行されていますが、期待値では2番目のコマンドを実行できません。 は最初、私たちは次のようにやっている: - ここ予期プログラミング:特定の文字列を期待する方法
send -i $install_id "utils ctl set-cluster mixed-mode\r\n"
puts "we are hitting yes &&&&&&&&&&"
expect {
-i $install_id -re ".*" {
send -i $install_id "y\r"
puts "$$$$$$$$$$$$$$$ we are inside...."
}
}
puts "we are done %%%%%%%%%%"
return 1
最初のコマンドsend -i $install_id "utils ctl set-cluster mixed-mode\r\n"
sucessfully実行なっているが、それは期待してループ内で行っていません。
最初のコマンドの出力のようなものです: - 私はY与えると入力する必要がどこ
admin:utils ctl set-cluster mixed-mode
This operation will set the cluster to Mixed mode. Do you want to continue? (y/n):
この後、カーソルが次の行になり、出力なステートメントは、内部の期待も
を印刷取得されていません
これらのコマンドは詳細モードで実行できます。最初の送信の前に 'exp_internal 1'を追加してください。 –
私はこれらのプログラミングに新しいです...私はちょうどあなたが追加しようとしているものは何ですか – user3388407
あなたは例外的なスクリプトを実行しているのですか? –