Some bugs and some improvments
I have a few bugs to notify about and a some improvements to suggest. All my input applies to version 4.1.2 (Build 388) (OS 5.1.2600 Service Pack 3)
Bug 1)
WinSCP\WinSCP.bat:
"C:\Program Files\Synkman\winscp.com" synkman@192.168.7.10 /script=script.txt
synchronize remote C:\www /var/www/htdocs/project.nordiccapital.com-https -delete -mirror keepuptodate C:\www /var/www/htdocs/project.nordiccapital.com-https -delete
How to reproduce bug:
1) Create a few directories in local source path to sync/keepuptodate from.
2) Run WinSCP.bat.
3) Delete the content in local source path.
4) Refresh the local source path in explorer.exe (F5), the directories are still there, they are also still there in the remote path. Trying to delete them locally (again) via explorer.exe results in the following message "Cannot delete file: Cannot read from the source file or disk".
5) Terminate WinSCP, the directories are now gone locally but not remotely.
WinSCP.bat output:
Searching for host... Connecting to host... Authenticating... Using username "synkman". Authenticating with public key "synkman 20080518". Authenticated. Starting the session... Reading remote directory... Session started. Active session: [1] synkman@192.168.7.10 Comparing... Local 'C:\www\New Folder' => Remote '/var/www/htdocs/project.nordiccapital.com-h Local 'C:\www\Copy of New Folder' => Remote '/var/www/htdocs/project.nordiccapit Local 'C:\www\Copy (2) of New Folder' => Remote '/var/www/htdocs/project.nordicc Local 'C:\www\Copy (3) of New Folder' => Remote '/var/www/htdocs/project.nordicc apital.com-https/Copy (3) of New Folder' Nothing to synchronize. Watching for changes, press Ctrl-C to abort... Scanning 'C:\www' for subdirectories... Watching for changes in 5 directories... Change in 'C:\www\New Folder' detected. Change in 'C:\www\Copy (2) of New Folder' detected. Change in 'C:\www\Copy (3) of New Folder' detected. Change in 'C:\www\Copy of New Folder' detected.
. 2008-05-19 19:29:19.942 -------------------------------------------------------------------------- . 2008-05-19 19:29:19.942 WinSCP Version 4.1.2 (Build 388) (OS 5.1.2600 Service Pack 3) . 2008-05-19 19:29:19.942 Login time: den 19 maj 2008 19:29:19 . 2008-05-19 19:29:19.942 -------------------------------------------------------------------------- . 2008-05-19 19:29:19.942 Session name: synkman@192.168.7.10 . 2008-05-19 19:29:19.942 Host name: 192.168.7.10 (Port: 22) . 2008-05-19 19:29:19.942 User name: synkman (Password: No, Key file: Yes) . 2008-05-19 19:29:19.942 Tunnel: No . 2008-05-19 19:29:19.942 Transfer Protocol: SFTP . 2008-05-19 19:29:19.942 Ping type: N, Ping interval: 30 sec; Timeout: 15 sec . 2008-05-19 19:29:19.942 Proxy: none . 2008-05-19 19:29:19.942 SSH protocol version: 2; Compression: No . 2008-05-19 19:29:19.942 Bypass authentication: No . 2008-05-19 19:29:19.942 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No . 2008-05-19 19:29:19.942 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No . 2008-05-19 19:29:19.942 SSH Bugs: -,-,-,-,-,-,-,- . 2008-05-19 19:29:19.942 SFTP Bugs: -,- . 2008-05-19 19:29:19.942 Return code variable: Autodetect; Lookup user groups: Yes . 2008-05-19 19:29:19.942 Shell: default, EOL: 0 . 2008-05-19 19:29:19.942 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes . 2008-05-19 19:29:19.942 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No . 2008-05-19 19:29:19.942 Local directory: C:\www, Remote directory: /var/www/htdocs/project.nordiccapital.com-https, Update: No, Cache: Yes . 2008-05-19 19:29:19.942 Cache directory changes: Yes, Permanent: Yes . 2008-05-19 19:29:19.942 DST mode: 1 . 2008-05-19 19:29:19.942 -------------------------------------------------------------------------- . 2008-05-19 19:29:19.942 Looking up host "192.168.7.10" . 2008-05-19 19:29:19.942 Connecting to 192.168.7.10 port 22 . 2008-05-19 19:29:20.004 Server version: SSH-2.0-OpenSSH_4.8 . 2008-05-19 19:29:20.004 We claim version: SSH-2.0-WinSCP_release_4.1.2 . 2008-05-19 19:29:20.004 SSPI: acquired credentials for: tanelr@AD.NC.COM . 2008-05-19 19:29:20.004 Cannot convert IP address to SPN: DNS is not trusted . 2008-05-19 19:29:20.004 GSSKEX disabled: . 2008-05-19 19:29:20.004 Using SSH protocol version 2 . 2008-05-19 19:29:20.020 Doing Diffie-Hellman group exchange . 2008-05-19 19:29:20.239 Doing Diffie-Hellman key exchange with hash SHA-1 . 2008-05-19 19:29:20.426 Host key fingerprint is: . 2008-05-19 19:29:20.426 ssh-rsa 2048 c0:a6:a7:c3:06:cc:bd:74:c9:81:7a:7e:1d:1b:aa:a1 . 2008-05-19 19:29:20.426 Initialised AES-256 SDCTR client->server encryption . 2008-05-19 19:29:20.426 Initialised HMAC-SHA1 client->server MAC algorithm . 2008-05-19 19:29:20.426 Initialised AES-256 SDCTR server->client encryption . 2008-05-19 19:29:20.426 Initialised HMAC-SHA1 server->client MAC algorithm . 2008-05-19 19:29:20.645 Reading private key file "C:\Program Files\Synkman\synkman.ppk" ! 2008-05-19 19:29:20.645 Using username "synkman". . 2008-05-19 19:29:20.661 Offered public key . 2008-05-19 19:29:20.661 Offer of public key accepted ! 2008-05-19 19:29:20.661 Authenticating with public key "synkman 20080518" . 2008-05-19 19:29:20.739 Access granted . 2008-05-19 19:29:20.754 Opened channel for session . 2008-05-19 19:29:20.754 Started a shell/command . 2008-05-19 19:29:20.754 -------------------------------------------------------------------------- . 2008-05-19 19:29:20.754 Using SFTP protocol. . 2008-05-19 19:29:20.754 Doing startup conversation with host. > 2008-05-19 19:29:20.754 Type: SSH_FXP_INIT, Size: 5, Number: -1 < 2008-05-19 19:29:20.770 Type: SSH_FXP_VERSION, Size: 38, Number: -1 . 2008-05-19 19:29:20.770 SFTP version 3 negotiated. . 2008-05-19 19:29:20.770 Unknown server extension posix-rename@openssh.com=1 . 2008-05-19 19:29:20.770 We believe the server has signed timestamps bug . 2008-05-19 19:29:20.770 We will use UTF-8 strings for status messages only . 2008-05-19 19:29:20.770 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes . 2008-05-19 19:29:20.770 Changing directory to "/var/www/htdocs/project.nordiccapital.com-https". . 2008-05-19 19:29:20.770 Getting real path for '/var/www/htdocs/project.nordiccapital.com-https' > 2008-05-19 19:29:20.770 Type: SSH_FXP_REALPATH, Size: 56, Number: 16 < 2008-05-19 19:29:20.770 Type: SSH_FXP_NAME, Size: 115, Number: 16 . 2008-05-19 19:29:20.770 Real path is '/var/www/htdocs/project.nordiccapital.com-https' . 2008-05-19 19:29:20.770 Trying to open directory "/var/www/htdocs/project.nordiccapital.com-https". > 2008-05-19 19:29:20.770 Type: SSH_FXP_LSTAT, Size: 56, Number: 263 < 2008-05-19 19:29:20.770 Type: SSH_FXP_ATTRS, Size: 37, Number: 263 . 2008-05-19 19:29:20.770 Getting current directory name. . 2008-05-19 19:29:20.770 Startup conversation with host finished. . 2008-05-19 19:29:20.770 Collecting synchronization list for local directory 'C:\www' and remote directory '/var/www/htdocs/project.nordiccapital.com-https', mode = 0, params = 4099 . 2008-05-19 19:29:20.770 Listing directory "/var/www/htdocs/project.nordiccapital.com-https". > 2008-05-19 19:29:20.770 Type: SSH_FXP_OPENDIR, Size: 56, Number: 523 < 2008-05-19 19:29:20.770 Type: SSH_FXP_HANDLE, Size: 13, Number: 523 > 2008-05-19 19:29:20.770 Type: SSH_FXP_READDIR, Size: 13, Number: 780 < 2008-05-19 19:29:20.770 Type: SSH_FXP_NAME, Size: 735, Number: 780 > 2008-05-19 19:29:20.770 Type: SSH_FXP_READDIR, Size: 13, Number: 1036 < 2008-05-19 19:29:20.770 Type: SSH_FXP_STATUS, Size: 28, Number: 1036 < 2008-05-19 19:29:20.770 Status/error code: 1 > 2008-05-19 19:29:20.770 Type: SSH_FXP_CLOSE, Size: 13, Number: 1284 . 2008-05-19 19:29:20.770 Collecting synchronization list for local directory 'C:\www\New Folder' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/New Folder', mode = 0, params = 4099 . 2008-05-19 19:29:20.770 Listing directory "/var/www/htdocs/project.nordiccapital.com-https/New Folder". > 2008-05-19 19:29:20.770 Type: SSH_FXP_OPENDIR, Size: 67, Number: 1547 < 2008-05-19 19:29:20.770 Type: SSH_FXP_STATUS, Size: 24, Number: 1284 . 2008-05-19 19:29:20.770 Discarding reserved response < 2008-05-19 19:29:20.770 Type: SSH_FXP_HANDLE, Size: 13, Number: 1547 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 1804 < 2008-05-19 19:29:20.786 Type: SSH_FXP_NAME, Size: 207, Number: 1804 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 2060 < 2008-05-19 19:29:20.786 Type: SSH_FXP_STATUS, Size: 28, Number: 2060 < 2008-05-19 19:29:20.786 Status/error code: 1 > 2008-05-19 19:29:20.786 Type: SSH_FXP_CLOSE, Size: 13, Number: 2308 . 2008-05-19 19:29:20.786 Collecting synchronization list for local directory 'C:\www\Copy of New Folder' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/Copy of New Folder', mode = 0, params = 4099 . 2008-05-19 19:29:20.786 Listing directory "/var/www/htdocs/project.nordiccapital.com-https/Copy of New Folder". > 2008-05-19 19:29:20.786 Type: SSH_FXP_OPENDIR, Size: 75, Number: 2571 < 2008-05-19 19:29:20.786 Type: SSH_FXP_STATUS, Size: 24, Number: 2308 . 2008-05-19 19:29:20.786 Discarding reserved response < 2008-05-19 19:29:20.786 Type: SSH_FXP_HANDLE, Size: 13, Number: 2571 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 2828 < 2008-05-19 19:29:20.786 Type: SSH_FXP_NAME, Size: 207, Number: 2828 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 3084 < 2008-05-19 19:29:20.786 Type: SSH_FXP_STATUS, Size: 28, Number: 3084 < 2008-05-19 19:29:20.786 Status/error code: 1 > 2008-05-19 19:29:20.786 Type: SSH_FXP_CLOSE, Size: 13, Number: 3332 . 2008-05-19 19:29:20.786 Collecting synchronization list for local directory 'C:\www\Copy (2) of New Folder' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/Copy (2) of New Folder', mode = 0, params = 4099 . 2008-05-19 19:29:20.786 Listing directory "/var/www/htdocs/project.nordiccapital.com-https/Copy (2) of New Folder". > 2008-05-19 19:29:20.786 Type: SSH_FXP_OPENDIR, Size: 79, Number: 3595 < 2008-05-19 19:29:20.786 Type: SSH_FXP_STATUS, Size: 24, Number: 3332 . 2008-05-19 19:29:20.786 Discarding reserved response < 2008-05-19 19:29:20.786 Type: SSH_FXP_HANDLE, Size: 13, Number: 3595 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 3852 < 2008-05-19 19:29:20.786 Type: SSH_FXP_NAME, Size: 207, Number: 3852 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 4108 < 2008-05-19 19:29:20.786 Type: SSH_FXP_STATUS, Size: 28, Number: 4108 < 2008-05-19 19:29:20.786 Status/error code: 1 > 2008-05-19 19:29:20.786 Type: SSH_FXP_CLOSE, Size: 13, Number: 4356 . 2008-05-19 19:29:20.786 Collecting synchronization list for local directory 'C:\www\Copy (3) of New Folder' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/Copy (3) of New Folder', mode = 0, params = 4099 . 2008-05-19 19:29:20.786 Listing directory "/var/www/htdocs/project.nordiccapital.com-https/Copy (3) of New Folder". > 2008-05-19 19:29:20.786 Type: SSH_FXP_OPENDIR, Size: 79, Number: 4619 < 2008-05-19 19:29:20.786 Type: SSH_FXP_STATUS, Size: 24, Number: 4356 . 2008-05-19 19:29:20.786 Discarding reserved response < 2008-05-19 19:29:20.786 Type: SSH_FXP_HANDLE, Size: 13, Number: 4619 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 4876 < 2008-05-19 19:29:20.786 Type: SSH_FXP_NAME, Size: 207, Number: 4876 > 2008-05-19 19:29:20.786 Type: SSH_FXP_READDIR, Size: 13, Number: 5132 < 2008-05-19 19:29:20.801 Type: SSH_FXP_STATUS, Size: 28, Number: 5132 < 2008-05-19 19:29:20.801 Status/error code: 1 > 2008-05-19 19:29:20.801 Type: SSH_FXP_CLOSE, Size: 13, Number: 5380 . 2008-05-19 19:29:36.785 Collecting synchronization list for local directory 'C:\www\New Folder\' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/New Folder/', mode = 0, params = 187 . 2008-05-19 19:29:37.285 Collecting synchronization list for local directory 'C:\www\Copy (2) of New Folder\' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/Copy (2) of New Folder/', mode = 0, params = 187 . 2008-05-19 19:29:37.785 Collecting synchronization list for local directory 'C:\www\Copy (3) of New Folder\' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/Copy (3) of New Folder/', mode = 0, params = 187 . 2008-05-19 19:29:38.285 Collecting synchronization list for local directory 'C:\www\Copy of New Folder\' and remote directory '/var/www/htdocs/project.nordiccapital.com-https/Copy of New Folder/', mode = 0, params = 187 . 2008-05-19 19:29:50.925 Sending null packet to keep session alive. . 2008-05-19 19:29:50.925 Sending special code: 15 . 2008-05-19 19:30:21.424 Sending null packet to keep session alive. . 2008-05-19 19:30:21.424 Sending special code: 15 . 2008-05-19 19:30:51.923 Sending null packet to keep session alive. . 2008-05-19 19:30:51.923 Sending special code: 15
Bug 2)
How to reproduce bug:
1) Run: "C:\Program Files\Synkman\winscp.exe" synkman@192.168.7.10 /keepuptodate
2) Start the keepuptodate.
3) Minimize to tray.
4) Unminimize it. You now have a big grey windows that you can't influence.
Suggestion of improvement 1:
When logging together with keepuptpdate the logfile grows very quickly. Consider having a logging option with less output, maybe the same amount of output as in cmd.exe when running /keepuptodate with /console.
Suggestion of improvement 2:
This one is a bit trickier I suppose, but being able to minimize winscp.com to tray would be just super!
Thanks for a great piece of software! :)
I'm reachable at:
tr <?a,t?> lc24 <+d,o,t+> net
(You can never be cautious enough about bots.)