
1 xiaket Mar 9, 2017 use rsync and retry till the exit code is 0. |
2 beric OP @xiaket 想问一下这样做是为了防止连接被断开?想知道连接了 10s 就断开是什么原因(客户端网络?系统 KILL 掉?),有没有一个跟踪思路呢?谢谢 |
3 goodryb Mar 9, 2017 这种为何不用 rsync |
5 RealLiuSha Mar 9, 2017 nohup $command > $PATH/$LOG_FILE 2>&1 & |
6 artandlol Mar 9, 2017 你用的应该不是 centos 过程输出到 /dev/null |
7 tolerance Mar 9, 2017 set timeout 60 |
8 beric OP 手动执行没问题,加了&后台执行也会出现断掉的情况 |
10 floopy Mar 9, 2017 1. expect 时你是否检查了 scp 进度。 2.rsync |