Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Re: remote custom commands

oops, Martin, I'm really sorry for not having answered yet. :(

Unfortunately, in my environment, I may not install a debug version. Perhaps I am lucky and the problem goes away magically. ;)

Stefan
martin

Re: remote custom commands

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Guest

Re: remote custom commands

martin wrote:

You do not have to click the Abort. You can just wait until the command finishes. The popup should go away on its own.


It does. But there is a fair chance that WinSCP crashes and I have to kill it using the task manager (see log excerpt below).
Anyway, it would be nice if one could tell WinSCP in advance something like "this command will take long, just leave it alone and don't bother me with pop ups." ;)


. 2013-04-26 09:15:31.616 Executing custom command "compress "!"" (0) on file "test".
. 2013-04-26 09:15:31.616 Executing custom command on command session.
. 2013-04-26 09:15:31.616 [Shell] Sent 71 bytes
. 2013-04-26 09:15:31.616 [Shell] There are 0 bytes remaining in the send buffer
. 2013-04-26 09:15:31.616 [Shell] Sent 1 bytes
. 2013-04-26 09:15:31.616 [Shell] There are 0 bytes remaining in the send buffer
> 2013-04-26 09:15:31.616 [Shell] compress "test" ; echo "WinSCP: this is end-of-file:$?"
. 2013-04-26 09:15:31.616 [Shell] Waiting for another 1 bytes
. 2013-04-26 09:15:46.621 [Shell] Waiting for data timed out, asking user what to do.
. 2013-04-26 09:15:46.621 [Shell] Asking user:
. 2013-04-26 09:15:46.621 [Shell] Host is not communicating for 15 seconds.
. 2013-04-26 09:15:46.621 [Shell]
. 2013-04-26 09:15:46.621 [Shell] Wait for another 15 seconds? ()
. 2013-04-26 09:15:46.636 Session upkeep
. 2013-04-26 09:15:46.636 [Shell] Session upkeep
. 2013-04-26 09:15:47.104 Session upkeep
. 2013-04-26 09:15:47.104 [Shell] Session upkeep
. 2013-04-26 09:15:47.619 Session upkeep
. 2013-04-26 09:15:47.619 [Shell] Session upkeep
. 2013-04-26 09:15:48.134 Session upkeep
. 2013-04-26 09:15:48.134 [Shell] Session upkeep
. 2013-04-26 09:15:48.648 Session upkeep
. 2013-04-26 09:15:48.648 [Shell] Session upkeep
. 2013-04-26 09:15:49.163 Session upkeep
. 2013-04-26 09:15:49.163 [Shell] Session upkeep
. 2013-04-26 09:15:49.678 Session upkeep
. 2013-04-26 09:15:49.678 [Shell] Session upkeep
. 2013-04-26 09:15:50.192 Session upkeep
. 2013-04-26 09:15:50.192 [Shell] Session upkeep
. 2013-04-26 09:15:50.707 Session upkeep
. 2013-04-26 09:15:50.707 [Shell] Session upkeep
. 2013-04-26 09:15:51.222 Session upkeep
. 2013-04-26 09:15:51.222 [Shell] Session upkeep
. 2013-04-26 09:15:51.737 Session upkeep
. 2013-04-26 09:15:51.737 [Shell] Session upkeep
. 2013-04-26 09:15:52.251 Session upkeep
. 2013-04-26 09:15:52.251 [Shell] Session upkeep
. 2013-04-26 09:15:52.766 Session upkeep
. 2013-04-26 09:15:52.766 [Shell] Session upkeep
. 2013-04-26 09:15:53.281 Session upkeep
. 2013-04-26 09:15:53.281 [Shell] Session upkeep
. 2013-04-26 09:15:53.795 Session upkeep
. 2013-04-26 09:15:53.795 [Shell] Session upkeep
. 2013-04-26 09:15:54.310 Session upkeep
. 2013-04-26 09:15:54.310 [Shell] Session upkeep
. 2013-04-26 09:15:54.825 Session upkeep
. 2013-04-26 09:15:54.825 [Shell] Session upkeep
. 2013-04-26 09:15:55.324 Session upkeep
. 2013-04-26 09:15:55.324 [Shell] Session upkeep
. 2013-04-26 09:15:55.839 Session upkeep
. 2013-04-26 09:15:55.839 [Shell] Session upkeep
. 2013-04-26 09:15:56.338 Session upkeep
. 2013-04-26 09:15:56.338 [Shell] Session upkeep
. 2013-04-26 09:15:56.775 [Shell] Attempt to close connection due to fatal exception:
* 2013-04-26 09:15:56.775 [Shell] Terminated by user.
. 2013-04-26 09:15:56.775 [Shell] Closing connection.
. 2013-04-26 09:15:56.775 [Shell] Sending special code: 12
. 2013-04-26 09:15:56.775 [Shell] Sent EOF message
. 2013-04-26 09:15:56.775 Attempt to close connection due to fatal exception:
* 2013-04-26 09:15:56.775 Error executing custom command 'compress "!"' on file 'test'.
* 2013-04-26 09:15:56.775 (ESshFatal) Terminated by user.
. 2013-04-26 09:15:56.775 Closing connection.
. 2013-04-26 09:15:56.775 Sending special code: 12
. 2013-04-26 09:15:56.775 Sent EOF message
* 2013-04-26 09:15:56.806 (ESshFatal) Terminated by user.
* 2013-04-26 09:15:56.806 Error executing custom command 'compress "!"' on file 'test'.
. 2013-04-26 09:16:02.015 Looking up host "xxx"
. 2013-04-26 09:16:02.015 Connecting to xxx port 22
. 2013-04-26 09:16:02.015 Session upkeep
. 2013-04-26 09:16:02.015 Detected network event
. 2013-04-26 09:16:02.078 Waiting for the server to continue with the initialisation
. 2013-04-26 09:16:02.078 Detected network event
. 2013-04-26 09:16:02.078 Server version: SSH-2.0-Sun_SSH_1.1.5
. 2013-04-26 09:16:02.078 Using SSH protocol version 2
. 2013-04-26 09:16:02.078 We claim version: SSH-2.0-WinSCP_release_5.1.4
. 2013-04-26 09:16:02.078 Waiting for the server to continue with the initialisation
. 2013-04-26 09:16:02.140 Detected network event
. 2013-04-26 09:16:02.140 Doing Diffie-Hellman group exchange
. 2013-04-26 09:16:02.140 Waiting for the server to continue with the initialisation
* 2013-04-26 09:16:02.156 (Exception) Access violation at address 016EA4D2 in module 'WinSCP.exe'. Read of address 00000000
. 2013-04-26 09:16:02.156 Detected network event
. 2013-04-26 09:16:02.156 Doing Diffie-Hellman key exchange with hash SHA-1
. 2013-04-26 09:16:02.343 Waiting for the server to continue with the initialisation
* 2013-04-26 09:16:02.421 (Exception) Access violation at address 016EA4D2 in module 'WinSCP.exe'. Read of address 00000000
. 2013-04-26 09:16:02.546 Detected network event
. 2013-04-26 09:16:02.748 Verifying host key rsa2 0x23,0xbd5d2e3b9873f1b875644cd0756348547bac218b9bd2acd with fingerprint ssh-rsa 1024 70:53:63:44:78:2e:d7:53:4c:83:c1:02:0d:39:25:a3
. 2013-04-26 09:16:02.748 Session upkeep
* 2013-04-26 09:16:02.936 (Exception) Access violation at address 016EA4D2 in module 'WinSCP.exe'. Read of address 00000000
* 2013-04-26 09:16:03.435 (Exception) Access violation at address 016EA4D2 in module 'WinSCP.exe'. Read of address 00000000
. 2013-04-26 09:16:03.762 Session upkeep
martin

Re: remote custom commands

You do not have to click the Abort. You can just wait until the command finishes. The popup should go away on its own.
Guest

remote custom commands

Hi all,

I really like the execute custom command feature WinSCP offers and use it quite often. An issue occurs, however, when executing a remote command that takes some time (more than a couple of seconds). For instance, when I execute remotely the command
compress "!"
on a large file a message box titled "confirm" pops up after 15 seconds or so. I have no other choice than to click "abort" which disconnects. After that an "error" msg box pops up and WinSCP reconnects automatically to the server if I ignore it. (I once or twice had a bad crash ("access violation ...") at this point when clicking on "Reconnect" but I cannot reproduce this.) Anyway, is it possible to configure WinSCP in a way such that no message boxes appear and WinSCP does not disconnect from the remote server?

When I try running the command in the background, i.e.
compress "!" &
the command is not executed, I get an "error" msg box and WinSCP disconnects from the remote server (and reconnects automatically).

Version is 5.1.4 on Windows 7.

Thanks very much
Stefan