Some time ago I received request to automate file transfer between FTP server and Development systems. Both, FTP server and Development system, are Windows-based. FTP server was running FTP over SSL only, so that automatically eliminated built-in Windows FTP command-line app.
Tried it worked very well in LAN but when it was a remote connection it gave me an error as “mount error (115): Operation now in progress. Refer to the mount.cifs (8) manual page. Tried all possibilities. Manually trying to mount it gives the same error. Made an mount point in /etc/fstab. Tried with smbclient. Connection to x.x.x.x failed (Error NTSTATUSIOTIMEOUT) checked with firewall no blocking made any to any available at both source Linux and destination Windows XP Checcked with telnet it was not communicating.checked with the ports 139 & 145 Dont know what the issue is???.
Searching for host.Connecting to host.Authenticating.Using username 'test'.Authenticating with pre-entered password.Authenticated.Starting the session.Reading remote directory.Session started.Active session: 1 test@127.0.0.1b:sync/sync 08:36. 08:30.svn 09:14 2,776 file1.txt 12:00 241 file2.zip 12:16 2,369 file3.txt 11:38 1,291 file4.txt 08:36 folderDrw-rw-rw- 0 0 May 24 9:.Drw-rw-rw- 0 0 May 24 9:.-rw-rw-rw- 0 2677 Mar 28 9: file1.txt-rw-rw-rw- 0 2271 Feb 17 12: file3.txtComparing.Local 'b:sync' = Remote '/sync'Synchronizing.Local 'b:sync' = Remote '/sync'b:syncfile4.txt 1 KiB 0.0 KiB/s ascii 100%b:syncfolder 0 KiB 0.0 KiB/s ascii 0%If you do not manage to resolve this, 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 for your fast reply!After knowing that the script should work correctly, I took a deeper look into my script file, and found a 0, i.e. ASCII value zero, character in it! Seems that the parser stopped at that char and silently ignored the rest of the mask.May I suggest:- Would be nice to get some more feedback about how the filemask was parsed.
For example if one could get a list of the files to be synced, and the ones excluded, without actually synchronizing? Would make testing cases like this much faster - actually running the sync can take a very long time.- And throwing a warning when there is such odd character in the script would be good as well.Anyways, thanks for a great app, saved the day for me! All other sync solutions I tested were failing miserably.