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