CentOS expect 설치

Jmnote (토론 | 기여)님의 2012년 8월 13일 (월) 23:32 판 (→‎테스트)
expect
리눅스 expect 설치
yum으로 expect 설치

1 설치 확인

[root@jmnote ~]# rpm -qa | grep expect

2 설치

[root@jmnote ~]# yum install expect -y
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: ftp.tsukuba.wide.ad.jp
 * updates: ftp.cuhk.edu.hk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package expect.x86_64 0:5.43.0-17.fc11 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
 Package            Arch               Version                    Repository          Size
===========================================================================================
Installing:
 expect             x86_64             5.43.0-17.fc11             fedora             267 k

Transaction Summary
===========================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 267 k
Downloading Packages:
http://ftp.tsukuba.wide.ad.jp/Linux/fedora-archive/fedora/linux/releases/11/Everything/x86_64/os/Packages/expect-5.43.0-17.fc11.x86_64.rpm: [Errno 4] IOError: <urlopen error [Errno 101] Network is unreachable>
Trying other mirror.
expect-5.43.0-17.fc11.x86_64.rpm                                    | 267 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : expect-5.43.0-17.fc11.x86_64                                        1/1 
Unable to connect to dbus

Installed:
  expect.x86_64 0:5.43.0-17.fc11                                                           

Complete!

3 설치 재확인

[root@jmnote ~]# rpm -qa | grep expect
expect-5.43.0-17.fc11.x86_64

4 테스트

명령어
which expect
expect
실행결과
[root@jmnote ~]# which expect
/usr/bin/expect
[root@jmnote ~]# expect
expect1.1> ^C[root@jmnote ~]# 
[root@jmnote ~]#
→ expect 프롬프트가 나오는 것을 확인하고 Ctrl+C를 눌러 종료하였다.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}