Problem putting files newer than X amount of time

Advertisement

DaveCDN
Joined:
Posts:
3
Location:
Canada

Problem putting files newer than X amount of time

I'm using WinSCP 5.1.7 on a Windows XP 32-bit box. I have a directory full of .xml files. I'm trying to put files to a remote FTP server that are newer than 1 hour. It's not working. I'm sending:

put *.xml>1H

and it sends nothing. Even if I try:

put *.xml>1Y

it doesn't send anything. There are definitely files from the past hour and all files (100 or so) are from a few months ago at most. If I do:

put *.xml

then it starts sending all of the xml files.

What am I doing wrong?

Dave.

Reply with quote

Advertisement

DaveCDN
Joined:
Posts:
3
Location:
Canada

Here's what the log looks like when I try to send files newer than 1 year, of which there are many:

. 2013-11-20 07:54:23.783 --------------------------------------------------------------------------
. 2013-11-20 07:54:23.783 WinSCP Version 5.1.7 (Build 3446) (OS 5.1.2600 Service Pack 3)
. 2013-11-20 07:54:23.783 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2013-11-20 07:54:23.783 Local account: SHARED-TFILES\User
. 2013-11-20 07:54:23.783 Working directory: d:\rowork
. 2013-11-20 07:54:23.783 Process ID: 1236
. 2013-11-20 07:54:23.783 Command-line: "C:\Program Files\WinSCP\WinSCP.exe" /console=517 /consoleinstance=_2852_190 "/script=EQcommands.txt" "/log=d:\winscp\dave.txt" 
. 2013-11-20 07:54:23.783 Time zone: Current: GMT-5, Standard: GMT-5, DST: GMT-4, DST Start: 3/10/2013, DST End: 11/3/2013
. 2013-11-20 07:54:23.783 Login time: Wednesday, November 20, 2013 7:54:23 AM
. 2013-11-20 07:54:23.783 --------------------------------------------------------------------------
. 2013-11-20 07:54:23.783 Session name: eq@eq.example.com@eq.example.com (Ad-Hoc session)
. 2013-11-20 07:54:23.783 Host name: eq.example.com (Port: 21)
. 2013-11-20 07:54:23.783 User name: eq@eq.example.com (Password: Yes, Key file: No)
. 2013-11-20 07:54:23.783 Tunnel: No
. 2013-11-20 07:54:23.783 Transfer Protocol: FTP
. 2013-11-20 07:54:23.783 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2013-11-20 07:54:23.783 Proxy: none
. 2013-11-20 07:54:23.783 FTP: FTPS: None; Passive: Yes [Force IP: A]; List all: A
. 2013-11-20 07:54:23.783 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2013-11-20 07:54:23.783 Cache directory changes: Yes, Permanent: Yes
. 2013-11-20 07:54:23.783 DST mode: 1; Timezone offset: 0h 0m
. 2013-11-20 07:54:23.783 --------------------------------------------------------------------------
. 2013-11-20 07:54:23.783 Connecting to eq.example.com ...
. 2013-11-20 07:54:23.846 Connected with eq.example.com. Waiting for welcome message...
< 2013-11-20 07:54:23.924 220-You will be disconnected after 15 minutes of inactivity.
< 2013-11-20 07:54:23.924 220-To create FTP accounts see <invalid link removed by admin>
< 2013-11-20 07:54:23.924 220 For assistance connecting to FTP see <invalid link removed by admin>
> 2013-11-20 07:54:23.924 USER eq@eq.example.com
< 2013-11-20 07:54:23.986 331 User eq@eq.example.com OK. Password required
> 2013-11-20 07:54:23.986 PASS *****************
< 2013-11-20 07:54:24.080 230 OK. Current restricted directory is /
> 2013-11-20 07:54:24.080 SYST
< 2013-11-20 07:54:24.142 215 UNIX Type: L8
> 2013-11-20 07:54:24.142 FEAT
< 2013-11-20 07:54:24.205 211-Extensions supported:
< 2013-11-20 07:54:24.205  EPRT
< 2013-11-20 07:54:24.205  IDLE
< 2013-11-20 07:54:24.221  MDTM
< 2013-11-20 07:54:24.221  SIZE
< 2013-11-20 07:54:24.221  MFMT
< 2013-11-20 07:54:24.221  REST STREAM
< 2013-11-20 07:54:24.221  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
< 2013-11-20 07:54:24.221  MLSD
< 2013-11-20 07:54:24.221  AUTH TLS
< 2013-11-20 07:54:24.221  PBSZ
< 2013-11-20 07:54:24.221  PROT
< 2013-11-20 07:54:24.221  ESTA
< 2013-11-20 07:54:24.221  PASV
< 2013-11-20 07:54:24.221  EPSV
< 2013-11-20 07:54:24.221  SPSV
< 2013-11-20 07:54:24.221  ESTP
< 2013-11-20 07:54:24.221 211 End.
. 2013-11-20 07:54:24.221 Connected
. 2013-11-20 07:54:24.221 --------------------------------------------------------------------------
. 2013-11-20 07:54:24.221 Using FTP protocol.
. 2013-11-20 07:54:24.221 Doing startup conversation with host.
> 2013-11-20 07:54:24.221 PWD
< 2013-11-20 07:54:24.283 257 "/" is your current location
. 2013-11-20 07:54:24.283 Getting current directory name.
. 2013-11-20 07:54:24.283 Startup conversation with host finished.
< 2013-11-20 07:54:24.283 Script: Active session: [1] eq@eq.example.com@eq.example.com
> 2013-11-20 07:54:24.283 Script: cd xml
. 2013-11-20 07:54:24.283 Cached directory change via "xml" to "/xml".
. 2013-11-20 07:54:24.283 Getting current directory name.
< 2013-11-20 07:54:24.283 Script: /xml
> 2013-11-20 07:54:24.283 Script: put *.xml>1Y
. 2013-11-20 07:54:24.283 Copying 0 files/directories to remote directory "/xml"
. 2013-11-20 07:54:24.283   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: 
. 2013-11-20 07:54:24.283   TM: B; ClAr: No; CPS: 0; InclM: 
. 2013-11-20 07:54:24.283   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> 2013-11-20 07:54:24.283 Script: exit
. 2013-11-20 07:54:24.283 Script: Exit code: 0
. 2013-11-20 07:54:24.283 Disconnected from server

Reply with quote

DaveCDN

Re: Problem putting files newer than X amount of time

Awesome! Thanks so much. That fixed it.

In another case I'm using a get command with the short form of the filemask like 'get *.zip>=61N' and didn't have a problem. Thought I could do the same with the put command.

Reply with quote

martin
Site Admin
martin avatar

Re: Problem putting files newer than X amount of time

DaveCDN wrote:

In another case I'm using a get command with the short form of the filemask like 'get *.zip>=61N' and didn't have a problem. Thought I could do the same with the put command.
With get it's remote mask, while with put it's local (Windows) mask.

Reply with quote

Advertisement

You can post new topics in this forum