Scripting Large file over threshold, avoid timeout
I am calling this script listed below from a batch file. My file I need to sftp is large and over the threshold allowed. The file size is 1.05 MB (1,105,019 bytes) and will increase some in the future.
I can sftp the file if I log in manually and save the settings changing
Does anyone script and sftp a very large file and have a suggestion as to what I might be doing wrong?
I need to avoid this rename of the file and then not timeout when doing the
From the batch file I use this command, so maybe I need to add something here?
Thanks very much.
I can sftp the file if I log in manually and save the settings changing
- Server response timeout from 15 seconds to 45 seconds
- I also must adjust one more setting to Disable for Endurance under Transfer under advance settings.
I think the8/4/2010 @ 7:37:14
File Arrived from Username
File Type : ART
File Name length greater than 16 : BIGDAILY.CSV.FILEPART
Job Aborted
-timeout=45
may be okay in my script? But I still am getting the file renamed with .filepart
on the end. Then the filename is incorrect that I need to send to the other server.
Does anyone script and sftp a very large file and have a suggestion as to what I might be doing wrong?
I need to avoid this rename of the file and then not timeout when doing the
put
open sftp://username:password@sftp.servername.com:23 -timeout=45 cd /TotheRightDirectory ls binary put \\path\pathnext\TransmitFiles\AR*.CSV ls close exit
winscp.exe /console /command "option batch on" "option confirm off" /script="\\PATH\ANOTHERFolder\mput.SCR" /