Robert DuToit
2013-08-04 12:07:51 UTC
Dear All,
I'm on OSX 10.8 and have set up lftp to run in an TCL expect script which recurses through directories and uploads files depending on various factors, Some get compressed before hand so I can not use the mirror command which works perfectly. This script works fine with ftp connection to server - it's just the sftp server script that keeps failing. It will upload so many files and then quit. If it is a one level directory with 100 image files it stops at 87 or 89 and then goes idle. In every case it doesn't finish and seems to halt with no error message and eventually shows "---- Closing idle connection" and quits. I have checked the script many times and it works perfectly running ftp and also using the ftp or sftp commands themselves.
So I am not sure if this is something obvious I am missing in lftp or the server so any thought in the right direction would be appreciated.
Thanks , Rob
##Expect script
spawn lftp
lftp :~> open -d -umyUserName,myPassword myserver.com
## we are in and now process files in directory
##uploads x number of files and then stops….
<--- 226 Transfer complete
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>
---- Closing idle connection
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>
---> QUIT
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>
<--- 221 Goodbye.
---- Closing control socket
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>
I'm on OSX 10.8 and have set up lftp to run in an TCL expect script which recurses through directories and uploads files depending on various factors, Some get compressed before hand so I can not use the mirror command which works perfectly. This script works fine with ftp connection to server - it's just the sftp server script that keeps failing. It will upload so many files and then quit. If it is a one level directory with 100 image files it stops at 87 or 89 and then goes idle. In every case it doesn't finish and seems to halt with no error message and eventually shows "---- Closing idle connection" and quits. I have checked the script many times and it works perfectly running ftp and also using the ftp or sftp commands themselves.
So I am not sure if this is something obvious I am missing in lftp or the server so any thought in the right direction would be appreciated.
Thanks , Rob
##Expect script
spawn lftp
lftp :~> open -d -umyUserName,myPassword myserver.com
## we are in and now process files in directory
##uploads x number of files and then stops….
<--- 226 Transfer complete
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>
---- Closing idle connection
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>
---> QUIT
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>
<--- 221 Goodbye.
---- Closing control socket
<ions.com:/rwbackup/sftp_testp/test3/rrr.sh/hhh/pp>