<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://valley.egloos.com/rss/style/style.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>이글루스 'expect' 태그 최근글</title>
		<link>http://valley.egloos.com/tag/expect</link>
		<description>expect</description>
		<language>ko</language>
		<pubDate>Wed, 07 Sep 2011 17:50:25 +0900</pubDate>
		<generator>Egloos</generator>
		<item>
	<title><![CDATA[expect를 이용한 rsync자동화 (자동백업하기)]]></title>
	<link>http://genes1s.egloos.com/2795737</link>
	<guid>http://genes1s.egloos.com/2795737</guid>
	<description>
	<![CDATA[ 
 [1.1.1.1의 백업] rsync -avr --delete 아이디@1.1.1.1:/.backup/ /.backup/start1/ [1.1.1.2의 백업] rsync -avr --delete 아이디@1.1.1.2#100:/.backup/ /.backup/www2/ □ cron으로 구성시 백업스크립트작성백업스크립트작성 의존 프로그램:expect※설치 #yum(apt-get) install expect스크립트 명:rsync_back expect가 하는일은 말그대로 기대한다 ....즉 기대하고 있다가 조건이 맞으면그 기대에 맞는 미리 설정해준 문자열을 보내주는 것이다. 이렇게 하므로 스크립트 기능이 없는 프로그램에 대하여 그 기능을 외부에서 추가할 수이 있게 된다. #!/usr/bin/expect -f ## 1.	]]>
	</description>
	<pubDate>Wed, 07 Sep 2011 17:50:25 +0900</pubDate>
	<dc:creator><![CDATA[Good mind]]></dc:creator>
</item>
<item>
	<title><![CDATA[Windows 환경에서 telnet 접속 자동화 with VBS]]></title>
	<link>http://handmade.egloos.com/5534629</link>
	<guid>http://handmade.egloos.com/5534629</guid>
	<description>
	<![CDATA[ 
set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)  rem 1000 번 반복 FOR i = 0 to 1000   WshShell.Run &quot;cmd&quot;   WScript.Sleep 100   WshShell.AppActivate &quot;C:\Windows\system32\cmd.exe&quot;    WScript.Sleep 100   rem telnet [address] [port]   WshShell.SendKeys &quot;telnet server.telnet.address 23{ENTER}&quot;    WScript.Sleep 2000   rem [id]   WshShell.SendKeys &quot;myid{ENTER}&quot;    WScript.Sleep 2000   rem [pwd]   WshSh	]]>
	</description>
	<pubDate>Fri, 19 Aug 2011 16:14:12 +0900</pubDate>
	<dc:creator><![CDATA[^@#%&amp;amp;amp;$]]></dc:creator>
</item>
<item>
	<title><![CDATA[mkpasswd 로 패스워드 자동생성]]></title>
	<link>http://voyager.egloos.com/4447119</link>
	<guid>http://voyager.egloos.com/4447119</guid>
	<description>
	<![CDATA[ 
참고:http://www.atmarkit.co.jp/flinux/rensai/linuxtips/889mkpasswd2.html    이하의 패키지가 필요      #yum install expect    설치후 다음과 같이 입력하면  #mkpasswd  q9XX2yyu+      패스워드가 자동 생성된다. (반드시 기호가 들어감)    내가 자주 쓰는 옵션은      mkpasswd -l 16 -s 0    16영숫자의 패스워드로 길이와 기호는 0번사용(사용안함) 지정이다.    다음은 옵션설명    -l 숫자:패스워드 길이지정. 기본9  -d 숫자:숫자의 수를 지정. 기본2  -c 숫자:영문소문자수 지정. 기본2  -C 숫자:영문대문자수 지정.기본2  -s 숫자:특수기호수지정.기본1  -2 : 패스워드를 	]]>
	</description>
	<pubDate>Wed, 11 Aug 2010 17:34:07 +0900</pubDate>
	<dc:creator><![CDATA[나야나]]></dc:creator>
</item>
<item>
	<title><![CDATA[expect를 이용한 조금 위험한 ssh login]]></title>
	<link>http://purewell.egloos.com/3431259</link>
	<guid>http://purewell.egloos.com/3431259</guid>
	<description>
	<![CDATA[ 
보통 ssh에 암호 없이 로그인을 가능케하려면 ~/.ssh에 authorized_keys에 접속을 요청하는 쪽 키를 등록해야하지만, 서버가 수 백 대이고, 일일이 세팅하기 귀찮으면 조금 위험하지만 expect을 이용해 손쉽게 자동 로그인하게 할 수 있다.  #!/usr/local/bin/expect -f  set user [lrange $argv 0 0]  set addr [lrange $argv 1 1]  set pass [lrange $argv 2 2]  set timeout -1  spawn ssh $user@$addr  match_max 100000  expect {          &quot;*?assword:*&quot; {                      send -- $pass                	]]>
	</description>
	<pubDate>Thu, 11 Oct 2007 11:16:33 +0900</pubDate>
	<dc:creator><![CDATA[Purewell.BIZ]]></dc:creator>
</item>
	</channel>
</rss>

