autoupdate script

shell.albert@beijing:~/study/test> ./run.sh
正在搜索升级服务器...
搜索到服务器:172.23.140.177
正在下载MD5文件...
Connected to 172.23.140.177.
220 Welcome to EAVCapture Server.
331 User name OK, need password.
230 You are logged in.
Remote system type is UNIX.
200 Command okay.
local: EAVCapture_Remote.md5 remote: EAVCapture_Remote.md5
227 Entering Passive Mode (172,23,140,177,201,196).
150 File status okay; about to open data connection.
    60      689.33 KiB/s
226 Closing data connection.
60 bytes received in 00:00 (1.47 KiB/s)
221 Quitting...
LocalMD5: 376c05132991a0adcc2f7469835d7ca6
RemoteMD5: 376c05132991a0adcc2f7469835d7c46
正在下载新版本文件
Connected to 172.23.140.177.
220 Welcome to EAVCapture Server.
331 User name OK, need password.
230 You are logged in.
Remote system type is UNIX.
200 Command okay.
local: EAVCapture_Remote.tar.bz2 remote: EAVCapture_Remote.tar.bz2
227 Entering Passive Mode (172,23,140,177,201,197).
150 File status okay; about to open data connection.
  9005        1.96 MiB/s
226 Closing data connection.
9005 bytes received in 00:00 (220.28 KiB/s)
221 Quitting...
正在备份当前版本文件
EAVCapture_Local.md5
EAVCapture_Remote.md5
EAVCapture_Remote.tar.bz2
run.sh
zserverfind.bin
zserverfind.c
正在删除旧版本文件...
run.sh
zserverfind.bin
zserverfind.c
升级成功!

你可能感兴趣的:(软件技术)