Topic "keep alive"

Author Message
[View user's profile]

Joined: 2016-03-30
Posts: 4

I try to use script to automate file transfer to hosted server, but it always get disconnected and reconnected all the times.

But if I use GUI, then the transfer is completed successfully

I check the log file and it shows below

2016-03-31 09:44:37.411 Session upkeep
2016-03-31 09:44:37.411 Sending dummy command to keep session alive.

Would you know how I can do that in scripting?

I would attached here

1/ my batch and scripting file for transferring (transfer got disconnected)

2/ log file for GUI transfer (completed transfer)

Thanks all for helping!

inspection2byWinSCP.log (977.26 KB) [Download]

Description: (none)

deploy.bat (95 Bytes) [Download]

Description: (none)

transferscript.txt (149 Bytes) [Download]

Description: (none)

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24735
Location: Prague, Czechia
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
[View user's profile]

Joined: 2016-03-30
Posts: 4
Thanks for your help!

I am ok with the setup now and it's working

But the log file getting big - is it only for debugging purpose and we should remove it in production environment? /console /log=inspection.log /passive=on /script=transferscript.txt

Is it a workaround for this /log=inspection.log? We still want to keep a log file in case it stops working and we know what it is


You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License