Session timeout after 3600 seconds

Advertisement

Audrius1992
Guest

Session timeout after 3600 seconds

Hello,
I have keepuptodate script which working well, but after 3600 seconds lost connection and stops updating.
I think that FTP server closes connection, but server admin can't change this timeout, so I should find solution.
There is any solution that after timeout script opens new connection and continues updating?
Script:
open ftp://u:V@IP/
keepuptodate C:\XMLData /domains/uploads
Log:
< 2023-05-17 14:00:57.866 226 Transfer complete
. 2023-05-17 14:00:57.866 Directory listing successful
. 2023-05-17 14:00:57.866 Reading symlink "public_html".
. 2023-05-17 14:01:27.376 Sending dummy command to keep session alive.
> 2023-05-17 14:01:27.376 TYPE A
< 2023-05-17 14:01:27.751 200 Type set to A
. 2023-05-17 14:01:57.504 Sending dummy command to keep session alive.
> 2023-05-17 14:01:57.504 PWD
< 2023-05-17 14:01:57.659 257 "/" is the current directory
. 2023-05-17 14:02:27.681 Sending dummy command to keep session alive.
> 2023-05-17 14:02:27.681 TYPE I
< 2023-05-17 14:02:27.869 200 Type set to I
. 2023-05-17 14:02:57.829 Sending dummy command to keep session alive.
> 2023-05-17 14:02:57.829 PWD
< 2023-05-17 14:02:58.251 257 "/" is the current directory
. 2023-05-17 14:02:58.251 Dummy directory read to keep session alive.
. 2023-05-17 14:02:58.251 Retrieving directory listing...
> 2023-05-17 14:02:58.251 TYPE A
< 2023-05-17 14:02:58.251 421 Session Timeout (3600 seconds): closing control connection
. 2023-05-17 14:02:58.251 Could not retrieve directory listing
. 2023-05-17 14:02:58.251 Disconnected from server
< 2023-05-17 14:02:58.251 Script: Lost connection.
< 2023-05-17 14:02:58.251 Disconnected from server

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum