CentOS7 项目打包后自动上传脚本

2020-03-31  本文已影响0人  赛亚人之神
#!/bin/bash
des_pass=testtest
expect -c "
spawn scp target/aaa-0.0.1.war root@192.168.1.30:/home/GameUser/MagicvesselUserWeb/aaa-release.war

expect \"password:\"
send \"${des_pass}\r\"
expect eof
"

上传 html 文件

#! /usr/bin/expect
spawn scp -r /Users/GrandKai/gitee/vue-admin/dist root@192.168.100.11:/usr/local/nginx/html/
expect "*password:"
send "123456\n"
expect eof
上一篇下一篇

猜你喜欢

热点阅读