Topic "get file from SFTP"

Author Message
sbeltrami
[View user's profile]

Joined: 2011-06-10
Posts: 6
Location: Italy
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Use a file mask with time constraint <2N:
https://winscp.net/eng/docs/file_mask#size_time
sbeltrami
[View user's profile]

Joined: 2011-06-10
Posts: 6
Location: Italy
prikryl 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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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.
_________________
Martin Prikryl
sbeltrami
[View user's profile]

Joined: 2011-06-10
Posts: 6
Location: Italy
prikryl 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
Get.txt (512 Bytes) Private file

Description: (none)

20160613101809_GestioneFax.log (41.12 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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.
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