Post a reply

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: 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.
rsmallwood

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.
martin

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.
rsmallwood

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