in reply to Looping File transfer using SFTP in TK
You did say that you want to transfer the file "repeatedly", but I don't see any looping in your sftp sub ... or am I missing something? As soon as it completes one full transmission of the file, it will quit. The bit with the callback checking $monitor will halt the transmission in "mid put", but it will not send the file more than once.