开发者

Linux Expect Script terminates too early

开发者 https://www.devze.com 2023-01-25 22:39 出处:网络
I have an expect script that I have written that at the end calls scp to copy a large file from server a to server b. The issue I have (which is the same using rsysnc and not scp) is that the expect s

I have an expect script that I have written that at the end calls scp to copy a large file from server a to server b. The issue I have (which is the same using rsysnc and not scp) is that the expect script is terminating before the file transfer is complete. I know that I can set the timeout in expect but as the file size grows so will the timeout. Is there anyone that has come across this issue and is ther开发者_JAVA百科e a wait function that I can use in expect?


You can set the timeout to -1 to disable the timeout feature.

0

精彩评论

暂无评论...
验证码 换一张
取 消