Moving files with time constraint

Advertisement

rsmallwood
Joined:
Posts:
4

Moving files with time constraint

For some reason I can't get the time constraint to work.

This is what I had before (which works fine):

mv iVUpload*.xml archive/

This, however, does not:

mv iVUpload*.xml<2D archive/

It is supposed to move files into the archive folder if they are more than 2 days old.

Anyone know why it doesn't work?

Many thanks

Robin

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: Moving files with time constraint

Works for me.

Can you be more specific about the problem? Does it fail? Moves all files? Moves no files?

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

rsmallwood
Joined:
Posts:
4

Re: Moving files with time constraint

Well, I had three files:

File 1: modified date of 'yesterday'
File 2: modified date of 3 days ago
File 3 modified date of 4 days ago

None of the files were moved. I was expecting files 2 & 3 to be moved.

Log attached.

Thanks

martin wrote:

Works for me.

Can you be more specific about the problem? Does it fail? Moves all files? Moves no files?

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

martin
Site Admin
martin avatar

Re: Moving files with time constraint

rsmallwood wrote:

Log attached.
Well, you are using over 5 years old version of WinSCP. It's quite likely that it does not support time-constraints with mvcommand. Please upgrade and try again.

Reply with quote

Advertisement

You can post new topics in this forum