get file from SFTP

Advertisement

sbeltrami
Joined:
Posts:
6
Location:
Italy

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

Reply with quote E-mail

Advertisement

sbeltrami
Joined:
Posts:
6
Location:
Italy

Re: get file from SFTP

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

Reply with quote E-mail

martin
Site Admin
martin avatar
Joined:
Posts:
36,205
Location:
Prague, Czechia

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.

Reply with quote

sbeltrami
Joined:
Posts:
6
Location:
Italy

Re: get file from SFTP

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

Thank You
  • Get.txt (512 Bytes, Private file)
  • 20160613101809_GestioneFax.log (41.12 KB, Private file)

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
36,205
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum