문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:expect [2015/03/21 18:46] kwon37xi |
linux:expect [2015/06/15 15:29] kwon37xi |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[http:// | * [[http:// | ||
* shell script를 자동화 해주는 툴이다. | * shell script를 자동화 해주는 툴이다. | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
- | * '' | + | |
+ | * [[http:// | ||
+ | | ||
+ | * '' | ||
===== 기본 명령 ===== | ===== 기본 명령 ===== | ||
* '' | * '' | ||
줄 29: | 줄 33: | ||
</ | </ | ||
+ | ===== sh shell script 안에서 호출 ===== | ||
+ | <code sh> | ||
+ | #!/bin/bash | ||
+ | # 원하는 bash script 작업 | ||
+ | SOME_ENV_VAR1=" | ||
+ | SOME_ENV_VAR2=" | ||
+ | expect <<EOF | ||
+ | # expect script들 기록 | ||
+ | # " | ||
+ | expect eof | ||
+ | EOF | ||
+ | |||
+ | # 이제 다시 원하는 셸 스크립트 작업 | ||
+ | </ |