When I run the sftp command from Python, it appears that only the first chunk of the file is downloaded and then execution hangs indefinitely.
here is some psuedocode
import os
cmd = sshpass -f <file> sftp <username>@<host_Address>:<file_to_download>
os.system(cmd)
The first chunk of the file will download right away (6651904) after that there is no progress and the command in python continues without completing or continuing with the download.
Ultimate goal. We're trying to use Python go to script the download of very large files. Pysftp doesn't work with large files.
Running sftp from the command line works flawlessly so we were hoping to just use Python to run the sftp commands but we're seeing issues there as well.