shell script 프로그램시 입력 파라미터

hscho79의 이미지

jeus datasource reconfig를 자동화 하려고 합니다.

shell script로 프로그램을 실행하고 그 프로그램에서 값을 입력해야하는데요.

---------------------------------

testSvr:home/tmax> da homePage (1)(unix에서 명령)

JEUS 5.0 (fix #26) JDBC Connection Pool Controller

testSvr_homePage>reconfig jdbc/homepage (2)(jeus 명령)

type properties
reconfig>. (3) (jeus 명령)

testSvr_hompage>exit

testSvr:home/tmax>

------------------------------ --

위에서 빨간색으로 된 3(1)(2)(3)가지 부분이 사용자 입력 명령어 입니다.

da homePage 를 실행하여 reconfig jdbc/homepage 두단계의 사용자 입력이 있는데

첫번째는 두번째는 파일 입력으로 했는데 마지막 꺼는 어떻게 해야할지 모르겠네요.

---reconfig.sh----

da homePage < command.txt command.txt 내용: reconfig jdbc/homepage

JEUS 5.0 (fix #26) JDBC Connection Pool Controller

type properties
reconfig>

-----------------

첫번째 명령어와 두번째 입력 값은 파일 입력으로 하였는 데 마지막은 어떻게 해야할 지 모르겠네요