Topic "Moving files with time constraint"

Author Message
rsmallwood
[View user's profile]

Joined: 2011-06-27
Posts: 4
For some reason I can't get the time constraint to work.

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

Code:
mv iVUpload*.xml archive/


This, however, does not:

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

Joined: 2011-06-27
Posts: 4
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

prikryl 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.
WinSCP Log.txt (3.15 KB) [Download]

Description: (none)

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