Trying to make a script that will copy some files between machines, and unzip them.
(Running CentOS 6.7)
Everything seems to work except the unzip
part,
This is the command giving me some issues,
ssh -i /root/.ssh/qasynd.key file_sync@10.5.107.82 'unzip /home/root/tmp/*.zip'
Ignoring the user/directory structure as that's just for the command, what could cause this?
I did try to point it to /usr/bin/unzip
as opposed to just unzip
.
[root@server01 vsoloviev]# ssh -i /root/.ssh/qasynd.key file_sync@10.5.107.82 'unzip /home/root/tmp/*.zip' |-----------------------------------------------------------------| Archive: /home/root/tmp/test.txt.zip replace test? [y]es, [n]o, [A]ll, [N]one, [r]ename: A extracting: test
– Vlad S Jan 05 '17 at 16:58