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.
精彩评论