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

martin

Re: get file from SFTP

The file is 08:11:05 GMT, so as of 10:18:09 GMT+2 (08:18:09 GMT), it should be matched by <2N.

Though you are using rather old version of WinSCP. Can you first try with the latest version?

If it still does not work, please post a new log file using the latest version.
sbeltrami

Re: get file from SFTP

martin wrote:

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


I have attached log file and script in private
The file to check data is test.tif.
I have a scritp the get -delete *.tif<2M but it seem that does not work.

Thank You
martin

Re: get file from SFTP

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
sbeltrami

Re: get file from SFTP

martin wrote:

Use a file mask with time constraint <2N:
https://winscp.net/eng/docs/file_mask#size_time


Thank you very much.
Another question, we are in GMT +1 and looking log file the file that is upload in 2016-06-13 9.10 is matched with 2016-06-13 7.10 (-2 because there is a daylight).
What can I do ?

Regards
sbeltrami

get file from SFTP

I have a problem because when start script it get file that just in uploading from customer.
I need to get only files from an SFTP server that have timestamp 2 (n) minutes before.
I need a script example.

Regards