Topic "Avoid connect time by maintaining session across operations"

Author Message
[View user's profile]

Joined: 2009-10-06
Posts: 4
I have to write a script where I get a listing of the remote directory. Select a few files and then delete them. Then choose some replacement files and put them on the server.

Problem that I face is that each time I have to some string operations in Perl, I have to close winscp connection and then open a connection again. These many opens take around 80% of the script execution time.

Is there a way I can open connection once. Keep moving from Winscp scripts and Perl scripts and then close in the end?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
So you need to know results of the previous operation to prepare script for the next? Or why do don't you do in in a single session?
Martin Prikryl

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