I am attempting to write an lftp script that mirrors directories to a remote server. The main problem I have is that I can not be sure weather or not the "verify-file" script included with lftp is executing.
I've issued the following commands after establishing a connection via an expect script:
Quote:
set xfer:verify-command "/usr/share/verify-file" yes
|
I am on Fedora so the path to that script is correct.
The "verify-file" script is a perl script & I know very little about perl. Perhaps I could make a copy of the file & set it as verbose to ensure that it is indeed being executed. I uploaded a large file to see if there was a pause after the transfer was complete. There was no difference between a file that was a few kb in size or one that was several hundred mb.
EDIT: I've changed other "xfer:*" settings to test things like remote directory and they work. I also realized lftp has a status during transfers that tells what it's doing (i.e. "changing remote directory")
I have tried running lftp from both root & a regular user from the client.
I guess I should ensure the open-ssl libs were used during the compile of lftp. I did not compile it myself so, as with everything else this is turning into something complicated. Will continue to update my progress &, if I ever get it to work, the script itself.