#!/bin/bash
echo -n "Input your Organization Name (eg, company) [Internet Widgits Pty Ltd]:"
read organization_name
...
중간생략
...
-c 'expect -re "Organization Name"' \
-c "send "$organization_name"\r" \
-c 'expect -re "Organizational Unit Name"' \
-c "send "$organizational_unit"\r" \
-c 'interact' \
-c 'exit'
안녕하세요. bash 스크립트 내에 expect를 활용하여 대화형 스크립트 제작을 해보다가 막히는 부분이 있어 도움을 얻고자 질문을 드립니다.