回答編集履歴
1
expectのサンプル
answer
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
```Bash
|
2
2
|
( echo hoge; echo test@test.test ) | xxxregistry
|
3
3
|
```
|
4
|
-
これで出来なかったら、expectというコマンドを使う必要があります。
|
4
|
+
これで出来なかったら、expectというコマンドを使う必要があります。
|
5
|
+
```Bash
|
6
|
+
expect -c "
|
7
|
+
spawn xxxregistry
|
8
|
+
expect \"name: \"
|
9
|
+
send \"hoge\r\"
|
10
|
+
expect \"email: \"
|
11
|
+
send \"test@test.test\r\"
|
12
|
+
interact
|
13
|
+
"
|
14
|
+
```
|