|
@@ -76,7 +76,7 @@ func main() {
|
|
|
if pingState.Load() { //// 等待成功连接上目标设备卍
|
|
if pingState.Load() { //// 等待成功连接上目标设备卍
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
- fmt.Printf("[%s] 尝试连接目标设备....\n", MODULE_NAME)
|
|
|
|
|
|
|
+ fmt.Printf("[%s] 正在尝试连接设备....\n", MODULE_NAME)
|
|
|
time.Sleep(1 * time.Second)
|
|
time.Sleep(1 * time.Second)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -141,7 +141,7 @@ func term(pingState *atomic.Bool) {
|
|
|
fmt.Fprintln(os.Stderr, result.Stderr)
|
|
fmt.Fprintln(os.Stderr, result.Stderr)
|
|
|
}
|
|
}
|
|
|
if result.ExitCode == 124 {
|
|
if result.ExitCode == 124 {
|
|
|
- fmt.Println("command timed out, try again later")
|
|
|
|
|
|
|
+ fmt.Println("command timed out")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if result.Cwd != "" {
|
|
if result.Cwd != "" {
|