Topic "Delay on exit"

Author Message
Torment

Guest


I am scripting an automatic file download from a server. Everything works fine, except that there seems to be a 20 second delay after it's complete. The last two commands in my script are "close" and "exit". The delay appears to be happening after the "exit" command. Is this by design or am I missing something? Is there a way to turn off that delay? Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
I've never seen this. Do you use .exe or .com? Does it happen if you try the other one?
_________________
Martin Prikryl
Torment
[View user's profile]

Joined: 2006-05-15
Posts: 1
Location: Austin, TX, USA
Thanks for your reply, Prikryl. Since you hadn't heard of this behavior, I thought maybe it was due to something on my end. I did a bunch more testing to see if I could provide you with some more information. In the process, it looks like I may have found a solution. I tried both versions of the program in console mode (using either "winscp3.com" or winscp3.exe /console"), but they performed identically.

For my testing, I simply ran the program and then entered "exit" to quit. The delay only occurs if both of the following are true:
1) The program is run from a network. (I'm running a Novell NetWare v6.5 IP-only network here.)
2) The program is either run with the "/ini" switch and the entire path to the ini file is specified (ie- winscp3.com /ini="F:\Shared\Programs\WinSCP3.ini"), OR the "/ini" switch is NOT used, but a WinSCP3.ini file DOES exist in the same directory as the executable.

The solution I found was to simply run the program using the "/ini" switch without specifying the path (ie- winscp3.com /ini="WinSCP3.ini"). I should also note that the program and the ini file are both located in the same directory.

Since this problem may simply be due to settings related to my network, and because I have a reasonable workaround, there's no need for you to go hunting down this particular gremlin. But I thought I'd post up my results just in case you do. And if there's anything more you'd like me to try, please let me know. Thanks!
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License