[ANT] ssh를 사용하여(sshexec) 원격지(remote)에 있는 zip 파일의 압축을 해제하는 예제 (unzip)

By | 4월 21, 2015

- 출처 : http://stackoverflow.com/questions/12922157/copy-and-unzip-files-to-remote-machine-ant -
 

<!-- unzip transfered zip file -->
<target name="remoteUnzip">
	<sshexec host="111.222.333.444" username="admin" password="1111"
		command="/bin/sh -c '
			for zipfile in /aaa/*.zip; do
			/usr/bin/unzip -d /aaa/unzip $$zipfile ; done '"
	/>
</target>

 
 
 
 
 
 
 
 

Category: ANT
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments