"CentOS expect 설치"의 두 판 사이의 차이

2번째 줄: 2번째 줄:
;yum으로 expect 설치
;yum으로 expect 설치


==설치 확인==
==설치 확인==
===실행===
===실행===
;명령어
;명령어

2012년 7월 7일 (토) 13:01 판

리눅스 expect 설치
yum으로 expect 설치

1 설치 확인

1.1 실행

명령어
expect
which expect
실행결과
[root@jmnote ~]# expect
-bash: expect: command not found
[root@jmnote ~]# which expect
/usr/bin/which: no expect in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

1.2 yum

명령어
yum info expect
실행결과
[root@jmnote ~]# yum info expect
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: ftp.tsukuba.wide.ad.jp
 * updates: ftp.cuhk.edu.hk
Available Packages
Name       : expect
Arch       : i586
Version    : 5.43.0
Release    : 17.fc11
Size       : 265 k
Repo       : fedora
Summary    : A program-script interaction and testing utility
URL        : http://expect.nist.gov/
License    : Public Domain
Description: Expect is a tcl application for automating and testing
           : interactive applications such as telnet, ftp, passwd, fsck,
           : rlogin, tip, etc. Expect makes it easy for a script to
           : control another program and interact with it.
           : 
           : This package contains expect and some scripts that use it.

Name       : expect
Arch       : x86_64
Version    : 5.43.0
Release    : 17.fc11
Size       : 267 k
Repo       : fedora
Summary    : A program-script interaction and testing utility
URL        : http://expect.nist.gov/
License    : Public Domain
Description: Expect is a tcl application for automating and testing
           : interactive applications such as telnet, ftp, passwd, fsck,
           : rlogin, tip, etc. Expect makes it easy for a script to
           : control another program and interact with it.
           : 
           : This package contains expect and some scripts that use it.
→ Repo 에 installed라고 나온 것이 없으므로 설치되지 않았다.

2 설치

명령어
yum install expect -y
실행결과
[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 설치 확인

명령어
which expect
expect
quit
실행결과
[root@jmnote ~]# which expect
/usr/bin/expect
[root@jmnote ~]# expect
expect1.1> quit
Tcl_SetObjLength called with shared object
Aborted
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}